summaryrefslogtreecommitdiff
path: root/src/Device
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2020-01-09 12:52:56 -0600
committerHarsh Sharma <harsh.sharma@multitech.com>2020-01-09 12:52:56 -0600
commitb69c7514fbad36e25dbf3ea263eb49f1f28d3653 (patch)
tree54685e228320bcb5db9727f66ae4d36c2e118c2e /src/Device
parent8c7856e74ba7bc149180aa3ab9f820043260cdc8 (diff)
downloadmts-io-sysfs-b69c7514fbad36e25dbf3ea263eb49f1f28d3653.tar.gz
mts-io-sysfs-b69c7514fbad36e25dbf3ea263eb49f1f28d3653.tar.bz2
mts-io-sysfs-b69c7514fbad36e25dbf3ea263eb49f1f28d3653.zip
Bug fix: mtcdt 2.1 FPGA matching was not working as required
Diffstat (limited to 'src/Device')
-rw-r--r--src/Device/Device.cpp6
1 files changed, 3 insertions, 3 deletions
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)) {