diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2022-03-10 14:22:53 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2022-03-10 14:32:35 -0600 |
commit | 0be7f765704e57ec50e020a41bf513d090382999 (patch) | |
tree | 6100d4012d7452f5190381339a344b9fcaf02bdc | |
parent | ffd9203c66c7665afb28b25cc43bc616a5c6db45 (diff) | |
download | mts-io-sysfs-0be7f765704e57ec50e020a41bf513d090382999.tar.gz mts-io-sysfs-0be7f765704e57ec50e020a41bf513d090382999.tar.bz2 mts-io-sysfs-0be7f765704e57ec50e020a41bf513d090382999.zip |
Updated lora 2g4 card to use symlinked names to prevent linking to incorrect device0.2.1
-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), |