diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2022-03-16 12:35:57 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2022-03-16 16:36:00 -0500 |
commit | 4b5fcfa39cd840418d2316209a7f67f239d3aa28 (patch) | |
tree | fc1c3ba6845f984717319aed8516a9e90ed6a4b0 /src/AccessoryCards/LoraCard15.cpp | |
parent | 17e3209a015e2f23b655b860917a1d2dffcd6040 (diff) | |
download | mts-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.cpp | 6 |
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); |