From 4b5fcfa39cd840418d2316209a7f67f239d3aa28 Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Wed, 16 Mar 2022 12:35:57 -0500 Subject: Fixed fpga loader --- src/AccessoryCards/LoraCard15.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/AccessoryCards/LoraCard15.cpp') 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); -- cgit v1.2.3