From b69c7514fbad36e25dbf3ea263eb49f1f28d3653 Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Thu, 9 Jan 2020 12:52:56 -0600 Subject: Bug fix: mtcdt 2.1 FPGA matching was not working as required --- src/Device/Device.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Device/Device.cpp') diff --git a/src/Device/Device.cpp b/src/Device/Device.cpp index 21ad9e8..e92ea6e 100644 --- a/src/Device/Device.cpp +++ b/src/Device/Device.cpp @@ -65,12 +65,12 @@ void Device::getSystemTreeJson(const char * dir_name) { accessoryCard.SetObject(); } if (strcmp(d_name, "product-id") == 0) { - if (regex_match(fileData, lora15Filters)) { - Lora15Card lora15(*this, fileData, dir_name); - } else if (regex_match(fileData, loraG16Filters)) { + if (regex_match(fileData, loraG16Filters)) { Lora21Card lora21(*this, fileData, dir_name); } else if (regex_match(fileData, loraG64Filters)) { Lora21ExtCard lora21Ext(*this, fileData, dir_name); + } else if (regex_match(fileData, lora15Filters)) { + Lora15Card lora15(*this, fileData, dir_name); } else if (regex_match(fileData, gpiobFilters)) { Gpiob ppiob(*this); } else if (regex_match(fileData, mfserFilters)) { -- cgit v1.2.3