diff options
Diffstat (limited to 'src/AccessoryCards/LoraCard21.cpp')
-rw-r--r-- | src/AccessoryCards/LoraCard21.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/AccessoryCards/LoraCard21.cpp b/src/AccessoryCards/LoraCard21.cpp index 70bec11..99f76d6 100644 --- a/src/AccessoryCards/LoraCard21.cpp +++ b/src/AccessoryCards/LoraCard21.cpp @@ -19,6 +19,7 @@ Device::Lora21Card::Lora21Card(Device& d, const std::string productId, const std::string port): LoraCard(d, productId, port) { spiPath = "/dev/spidev32766.2"; - MTS::System::cmd(LORA_2_1_FPGA_VERSION, fpgaVersion); - device.accessoryCard.AddMember("fpgaVersion", std::stoi(fpgaVersion), device.accessoryCardsAlloc); + MTS::System::cmd(LORA_2_1_FPGA_VERSION, cmdFpgaVersion); + fpgaVersion = std::stoi(cmdFpgaVersion); + setCapabilities(); }
\ No newline at end of file |