summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2022-03-10 14:22:53 -0600
committerHarsh Sharma <harsh.sharma@multitech.com>2022-03-10 14:22:53 -0600
commit366ef4b67a7b8b64fa57ef76af5ab66e98821dbe (patch)
tree6100d4012d7452f5190381339a344b9fcaf02bdc /src
parent25a1c0e58eb725855cc86876fcb97d14e2f4eb8e (diff)
downloadmts-io-sysfs-366ef4b67a7b8b64fa57ef76af5ab66e98821dbe.tar.gz
mts-io-sysfs-366ef4b67a7b8b64fa57ef76af5ab66e98821dbe.tar.bz2
mts-io-sysfs-366ef4b67a7b8b64fa57ef76af5ab66e98821dbe.zip
Updated lora 2g4 card to use symlinked names to prevent linking to incorrect device
Diffstat (limited to 'src')
-rw-r--r--src/AccessoryCards/LoraCard2G4.cpp3
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),