diff options
Diffstat (limited to 'src/AccessoryCards/LoraCard15.cpp')
-rw-r--r-- | src/AccessoryCards/LoraCard15.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/AccessoryCards/LoraCard15.cpp b/src/AccessoryCards/LoraCard15.cpp index cb7dc64..a7a1dad 100644 --- a/src/AccessoryCards/LoraCard15.cpp +++ b/src/AccessoryCards/LoraCard15.cpp @@ -19,10 +19,10 @@ Device::Lora15Card::Lora15Card(Device& d, const std::string ProductId, const std::string Port) : LoraCard(d, ProductId, Port) { int ret; - std::string deviceProductId = ""; - /* Map the spi path to the device and card product id, with the default being spidev0.0 */ - MTS::System::readFile(PRODUCT_ID_PATH, deviceProductId); - if (deviceProductId.find("MTCDT3-") != std::string::npos) { + std::string deviceHwVersion = ""; + /* Map the spi path to the device hw version/mtac product id, with the default being spidev0.0 */ + MTS::System::readFile(HW_VERSION_PATH, deviceHwVersion); + if (deviceHwVersion.find("MTCDT3-") != std::string::npos) { if (port.back() == '2') { spiPath = "/dev/spidev1.2"; } else { |