summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2022-03-10 14:22:53 -0600
committerJohn Klug <john.klug@multitech.com>2022-03-10 14:32:35 -0600
commit0be7f765704e57ec50e020a41bf513d090382999 (patch)
tree6100d4012d7452f5190381339a344b9fcaf02bdc /src
parentffd9203c66c7665afb28b25cc43bc616a5c6db45 (diff)
downloadmts-io-sysfs-7737de1ffc879ff72415402602d38e2a4ffc5c7f.tar.gz
mts-io-sysfs-7737de1ffc879ff72415402602d38e2a4ffc5c7f.tar.bz2
mts-io-sysfs-7737de1ffc879ff72415402602d38e2a4ffc5c7f.zip
Updated lora 2g4 card to use symlinked names to prevent linking to incorrect device0.2.1
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),