Skip to content

Commit ff10f37

Browse files
committed
T-Beam removed redundancy
Removed redundant SPI begin calls
1 parent aa9eac1 commit ff10f37

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

variants/lilygo_tbeam_SX1262/target.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ SensorManager sensors;
2323
bool radio_init() {
2424
fallback_clock.begin();
2525
rtc_clock.begin(Wire);
26-
27-
#if defined(P_LORA_SCLK)
28-
spi.begin(P_LORA_SCLK, P_LORA_MISO, P_LORA_MOSI);
2926
return radio.std_init(&spi);
30-
#else
31-
return radio.std_init();
32-
#endif
3327
}
3428

3529
uint32_t radio_get_rng_seed() {

variants/lilygo_tbeam_supreme_SX1262/target.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,14 +257,8 @@ static bool readStringUntil(Stream& s, char dest[], size_t max_len, char term, u
257257

258258
bool radio_init() {
259259
fallback_clock.begin();
260-
261260
rtc_clock.begin(Wire1);
262-
263-
#if defined(P_LORA_SCLK)
264-
spi.begin(P_LORA_SCLK, P_LORA_MISO, P_LORA_MOSI);
265261
return radio.std_init(&spi);
266-
#else
267-
return radio.std_init();
268262
#endif
269263
}
270264

0 commit comments

Comments
 (0)