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