Skip to content

Commit 4498d78

Browse files
authored
Merge pull request #232 from jubamo/beta_tcxo
test board 868-915MHz LILYGO T3_V1.6.1 TCXO
2 parents 0f38448 + 645d6c2 commit 4498d78

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

tinyGS/src/ConfigManager/ConfigManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ ConfigManager::ConfigManager()
7878
{ 0x3c, 21, 22, UNUSED, 38, 22, RADIO_SX1276, 18, 26, 33, UNUSED, 14, 19, 27, 5, 0.0f, UNUSED, UNUSED, "868-915MHz T-BEAM V1.0 + OLED" }, // SX1276 @fafu
7979
{ 0x3c, 21, 22, UNUSED, 0, 25, RADIO_SX1278, 18, 26, 33, UNUSED, 23, 19, 27, 5, 0.0f, UNUSED, UNUSED, "433MHz LILYGO T3_V1.6.1" }, // SX1278
8080
{ 0x3c, 21, 22, UNUSED, 0, 25, RADIO_SX1276, 18, 26, 33, UNUSED, 23, 19, 27, 5, 0.0f, UNUSED, UNUSED, "868-915MHz LILYGO T3_V1.6.1" }, // SX1276
81-
{ 0x3c, 21, 22, UNUSED, 0, 25, RADIO_SX1262, 18, 26, RADIOLIB_NC, 32, 23, 19, 27, 5, 0.0f, UNUSED, UNUSED, "868-915MHz LILYGO T3_V1.6.1 TCXO" }, // SX1262
81+
{ 0x3c, 21, 22, UNUSED, 0, 25, RADIO_SX1276, 18, 26, UNUSED, 32, 23, 19, 27, 5, 0.0f, UNUSED, UNUSED, "868-915MHz LILYGO T3_V1.6.1 TCXO" }, // SX1262
8282

8383
#endif
8484
})

tinyGS/src/ConfigManager/ConfigManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ typedef struct
111111
uint8_t L_radio; // 0 SX1262 1 SX1278
112112
uint8_t L_NSS; // CS
113113
uint8_t L_DI00;
114-
uint32_t L_DI01;
114+
uint8_t L_DI01;
115115
uint8_t L_BUSSY;
116116
uint8_t L_RST;
117117
uint8_t L_MISO;

tinyGS/src/Radio/Radio.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ void Radio::init()
6666
moduleNameString="SX1278";
6767
break;
6868
case RADIO_SX1276:
69+
#if CONFIG_IDF_TARGET_ESP32 // Heltec Lora 32 V3 patch to enable TCXO
70+
if (ConfigManager::getInstance().getBoard()== LILYGO_T3_V1_6_1_HF_TCXO ) {
71+
Log::console(PSTR("[SX1276] Enable TCXO 33... "));
72+
pinMode (33, OUTPUT);
73+
digitalWrite(33, HIGH);
74+
delay(50);
75+
}
76+
#endif
6977
radioHal = new RadioHal<SX1276>(new Module(board.L_NSS, board.L_DI00, board.L_RST, board.L_DI01, spi, SPISettings(2000000, MSBFIRST, SPI_MODE0)));
7078
moduleNameString="SX1276";
7179
break;
@@ -74,14 +82,6 @@ void Radio::init()
7482
moduleNameString="SX1268";
7583
break;
7684
case RADIO_SX1262:
77-
#if CONFIG_IDF_TARGET_ESP32 // Heltec Lora 32 V3 patch to enable TCXO
78-
if (ConfigManager::getInstance().getBoard()== LILYGO_T3_V1_6_1_HF_TCXO ) {
79-
Log::console(PSTR("[SX1262] Enable TCXO 33... "));
80-
pinMode (33, OUTPUT);
81-
digitalWrite(33, HIGH);
82-
delay(50);
83-
}
84-
#endif
8585
radioHal = new RadioHal<SX1262>(new Module(board.L_NSS, board.L_DI01, board.L_RST, board.L_BUSSY, spi, SPISettings(2000000, MSBFIRST, SPI_MODE0)));
8686
moduleNameString="SX1262";
8787
break;

tinyGS/src/Status.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct TextFrame {
6767
};
6868

6969
struct Status {
70-
const uint32_t version = 2403159; // version year month day release
70+
const uint32_t version = 2403161; // version year month day release
7171
const char* git_version = GIT_VERSION;
7272
bool mqtt_connected = false;
7373
bool radio_ready = false;

0 commit comments

Comments
 (0)