diff options
| author | Harsh Sharma <harsh.sharma@multitech.com> | 2022-03-16 12:35:57 -0500 |
|---|---|---|
| committer | Harsh Sharma <harsh.sharma@multitech.com> | 2022-03-16 12:35:57 -0500 |
| commit | 807db81bdd99812bbdbbf05aefd42901628d4cf3 (patch) | |
| tree | fc1c3ba6845f984717319aed8516a9e90ed6a4b0 /src/AccessoryCards/LoraCard15.cpp | |
| parent | c3a72c83d08899aca324004b888f471688e7116b (diff) | |
| download | mts-io-sysfs-807db81bdd99812bbdbbf05aefd42901628d4cf3.tar.gz mts-io-sysfs-807db81bdd99812bbdbbf05aefd42901628d4cf3.tar.bz2 mts-io-sysfs-807db81bdd99812bbdbbf05aefd42901628d4cf3.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); |
