From ff2949b92db803f04cb056f8b4f83d28db4faa07 Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Mon, 9 Nov 2020 14:10:34 -0600 Subject: Changed mtcdt3 lora card identifier from product-id to hw version --- src/AccessoryCards/LoraCard15.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3