Skip to content

Commit 886b23d

Browse files
committed
fix: enable ESP-IDF HAL by default for LR2021 variant
Enables USE_ESPIDF_HAL in platformio.ini to ensure reliable SPI communication on ESP32-C3 boards where SPIClass(0) may return zeros.
1 parent 05ad173 commit 886b23d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

variants/nicerf_lr2021/platformio.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ build_flags =
2424
-D RADIOLIB_EXCLUDE_SX126X=1
2525
; LR2021 IRQ DIO pin (configurable — LR2021 supports any DIO pin for IRQ)
2626
-D LR2021_IRQ_DIO=9
27+
; Use ESP-IDF SPI HAL (Arduino SPIClass returns zeros on some ESP32-C3 boards)
28+
-D USE_ESPIDF_HAL
2729
build_src_filter = ${esp32_base.build_src_filter}
2830
+<../variants/nicerf_lr2021>
2931
+<helpers/sensors>

0 commit comments

Comments
 (0)