Skip to content

Commit 68beebf

Browse files
author
Kimmo Vaisanen
committed
Fix SPI flags for SX1272 and SX1276
1 parent aed2277 commit 68beebf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SX1272/SX1272_LoRaRadio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ SPDX-License-Identifier: BSD-3-Clause
3232
#include "sx1272Regs-Fsk.h"
3333
#include "sx1272Regs-LoRa.h"
3434

35-
#ifdef MBED_SX1272_LORA_RADIO_SPI_FREQUENCY
36-
#define SPI_FREQUENCY MBED_SX1272_LORA_RADIO_SPI_FREQUENCY
35+
#ifdef MBED_CONF_SX1272_LORA_DRIVER_SPI_FREQUENCY
36+
#define SPI_FREQUENCY MBED_CONF_SX1272_LORA_DRIVER_SPI_FREQUENCY
3737
#else
3838
#define SPI_FREQUENCY 8000000
3939
#endif

SX1276/SX1276_LoRaRadio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ enum RadioVariant {
154154
SX1276MB1MAS
155155
};
156156

157-
#ifdef MBED_SX1276_LORA_RADIO_SPI_FREQUENCY
158-
#define SPI_FREQUENCY MBED_SX1276_LORA_RADIO_SPI_FREQUENCY
157+
#ifdef MBED_CONF_SX1276_LORA_DRIVER_SPI_FREQUENCY
158+
#define SPI_FREQUENCY MBED_CONF_SX1276_LORA_DRIVER_SPI_FREQUENCY
159159
#else
160160
#define SPI_FREQUENCY 8000000
161161
#endif

0 commit comments

Comments
 (0)