summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/AccessoryCards/LoraCard2G4.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/AccessoryCards/LoraCard2G4.cpp b/src/AccessoryCards/LoraCard2G4.cpp
index 10691ce..aca092f 100644
--- a/src/AccessoryCards/LoraCard2G4.cpp
+++ b/src/AccessoryCards/LoraCard2G4.cpp
@@ -24,7 +24,8 @@ void Device::Lora2G4Card::AddToDeviceInfo(const std::string Port,
const std::string ProductID) {
LoraCard::AddToDeviceInfo(Port, ProductID);
- std::string ttyPath = "/dev/ttyACM0";
+ rapidjson::SizeType deviceNumber = device.accessoryCards.Size() + 1;
+ std::string ttyPath = "/dev/ttyACM" + std::to_string(deviceNumber);
device.accessoryCard.AddMember(
"ttyPath",
rapidjson::Value().SetString(ttyPath.c_str(), device.acAlloc),