summaryrefslogtreecommitdiff
path: root/src/AccessoryCards/LoraCard15.cpp
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2022-03-16 12:35:57 -0500
committerJohn Klug <john.klug@multitech.com>2022-03-16 16:36:00 -0500
commit4b5fcfa39cd840418d2316209a7f67f239d3aa28 (patch)
treefc1c3ba6845f984717319aed8516a9e90ed6a4b0 /src/AccessoryCards/LoraCard15.cpp
parent17e3209a015e2f23b655b860917a1d2dffcd6040 (diff)
downloadmts-io-sysfs-4b5fcfa39cd840418d2316209a7f67f239d3aa28.tar.gz
mts-io-sysfs-4b5fcfa39cd840418d2316209a7f67f239d3aa28.tar.bz2
mts-io-sysfs-4b5fcfa39cd840418d2316209a7f67f239d3aa28.zip
Fixed fpga loader
Diffstat (limited to 'src/AccessoryCards/LoraCard15.cpp')
-rw-r--r--src/AccessoryCards/LoraCard15.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/AccessoryCards/LoraCard15.cpp b/src/AccessoryCards/LoraCard15.cpp
index 3ed0f31..f71bff3 100644
--- a/src/AccessoryCards/LoraCard15.cpp
+++ b/src/AccessoryCards/LoraCard15.cpp
@@ -27,11 +27,11 @@ void Device::Lora15Card::AddToDeviceInfo(const std::string Port,
LoraCard::AddToDeviceInfo(Port, ProductID);
if (ProductID.rfind("MTCAP", 0) == 0) {
- spiPath = "/dev/spidev0.0";
+ spiPath = LORA_1_5_MTCAP_SPI;
} else if (Port.back() == '2') {
- spiPath = "/dev/spidev1.2";
+ spiPath = LORA_1_5_MTCDT_SPI_AP_2;
} else {
- spiPath = "/dev/spidev0.2";
+ spiPath = LORA_1_5_MTCDT_SPI_AP_1;
}
Mtac15Fpga mtac15Fpga(spiPath);