diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2024-04-10 16:29:24 -0500 |
---|---|---|
committer | Harsh Sharma <harsh.sharma@multitech.com> | 2024-04-10 16:29:24 -0500 |
commit | 1eea7eae25074cc18e37c80cd5ede91e13213920 (patch) | |
tree | 6febe3374832e8ce740f1e42a710d4d172c7d034 /src | |
parent | 3cd85e811ffcdd481cae20c76c045134b0ba3f3d (diff) | |
download | mts-io-sysfs-1eea7eae25074cc18e37c80cd5ede91e13213920.tar.gz mts-io-sysfs-1eea7eae25074cc18e37c80cd5ede91e13213920.tar.bz2 mts-io-sysfs-1eea7eae25074cc18e37c80cd5ede91e13213920.zip |
Enabled loraLbt flag for mtac 003 and mtac 1.5 cards with v33 or v35 fpga0.2.12
Diffstat (limited to 'src')
-rw-r--r-- | src/AccessoryCards/LoraCard03.cpp | 2 | ||||
-rw-r--r-- | src/AccessoryCards/LoraCard15.cpp | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/AccessoryCards/LoraCard03.cpp b/src/AccessoryCards/LoraCard03.cpp index 7e9f9ae..b1fb9ce 100644 --- a/src/AccessoryCards/LoraCard03.cpp +++ b/src/AccessoryCards/LoraCard03.cpp @@ -35,10 +35,12 @@ void Device::Lora03Card::AddToDeviceInfo(const std::string Port, spiPath = "/dev/spidev1.0"; spiPath1261 = "/dev/spidev1.1"; tmp102 = 0x49; + device.capabilityList["loraLbt"] = true; } else { spiPath = "/dev/spidev0.0"; spiPath1261 = "/dev/spidev0.1"; tmp102 = 0x48; + device.capabilityList["loraLbt"] = true; } device.accessoryCard.AddMember( diff --git a/src/AccessoryCards/LoraCard15.cpp b/src/AccessoryCards/LoraCard15.cpp index f71bff3..fb67943 100644 --- a/src/AccessoryCards/LoraCard15.cpp +++ b/src/AccessoryCards/LoraCard15.cpp @@ -42,4 +42,7 @@ void Device::Lora15Card::AddToDeviceInfo(const std::string Port, rapidjson::Value().SetString(spiPath.c_str(), device.acAlloc), device.acAlloc); device.accessoryCard.AddMember("fpgaVersion", fpgaVersion, device.acAlloc); + if (fpgaVersion == 33 || fpgaVersion == 35) { + device.capabilityList["loraLbt"] = true; + } }
\ No newline at end of file |