From 1eea7eae25074cc18e37c80cd5ede91e13213920 Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Wed, 10 Apr 2024 16:29:24 -0500 Subject: Enabled loraLbt flag for mtac 003 and mtac 1.5 cards with v33 or v35 fpga --- src/AccessoryCards/LoraCard03.cpp | 2 ++ src/AccessoryCards/LoraCard15.cpp | 3 +++ 2 files changed, 5 insertions(+) (limited to 'src') 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 -- cgit v1.2.3