raise current limit to max for sx126x and sx127x

This commit is contained in:
recrof 2025-05-12 10:19:33 +02:00
parent b08436eba7
commit 76639e2a68
18 changed files with 39 additions and 28 deletions

View file

@ -23,7 +23,7 @@ SensorManager sensors;
bool radio_init() {
fallback_clock.begin();
rtc_clock.begin(Wire);
#if defined(P_LORA_SCLK)
spi.begin(P_LORA_SCLK, P_LORA_MISO, P_LORA_MOSI);
#endif
@ -34,8 +34,12 @@ bool radio_init() {
return false; // fail
}
#ifdef SX127X_CURRENT_LIMIT
radio.setCurrentLimit(SX127X_CURRENT_LIMIT);
#endif
radio.setCRC(1);
return true; // success
}