From: tomuk5 Date: Tue, 29 Apr 2025 09:02:14 +0000 (+0100) Subject: Fix TCX0 and fix SPI default being set incorrectly X-Git-Url: https://git.tnoah.ca/?a=commitdiff_plain;h=4ce534d1c31f8cff4a386751978cb7e59014e727;p=lora-radio.git Fix TCX0 and fix SPI default being set incorrectly --- diff --git a/Boards.h b/Boards.h index 2b25e46..0a871de 100644 --- a/Boards.h +++ b/Boards.h @@ -1010,7 +1010,7 @@ const bool interface_cfg[INTERFACE_COUNT][3] = { // SX1262 { - true, // DEFAULT_SPI + false, // DEFAULT_SPI true, // HAS_TCXO true // DIO2_AS_RF_SWITCH }, diff --git a/Radio.cpp b/Radio.cpp index 5a9ef69..46100f9 100644 --- a/Radio.cpp +++ b/Radio.cpp @@ -711,6 +711,8 @@ void sx126x::enableTCXO() { uint8_t buf[4] = {MODE_TCXO_1_8V_6X, 0x00, 0x00, 0xFF}; #elif BOARD_MODEL == BOARD_HELTEC_T114 uint8_t buf[4] = {MODE_TCXO_1_8V_6X, 0x00, 0x00, 0xFF}; + #elif BOARD_MODEL == BOARD_E22_ESP32 + uint8_t buf[4] = {MODE_TCXO_1_8V_6X, 0x00, 0x00, 0xFF}; #else uint8_t buf[4] = {0}; #endif