From 366ef4b67a7b8b64fa57ef76af5ab66e98821dbe Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Thu, 10 Mar 2022 14:22:53 -0600 Subject: Updated lora 2g4 card to use symlinked names to prevent linking to incorrect device --- src/AccessoryCards/LoraCard2G4.cpp | 3 +-- 1 file changed, 1 insertion(+), 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), -- cgit v1.2.3