Tbeam 1W Fan and LNA Sequncing Fix

This commit is contained in:
Robowarrior834 2026-04-20 11:30:42 -04:00
parent dee3e26ac0
commit ad3a3bfb41
11 changed files with 61 additions and 13 deletions

View file

@ -229,4 +229,7 @@ void loop() {
ui_task.loop();
#endif
rtc_clock.tick();
}
#ifdef P_FAN_CTRL
update_fan_control();
#endif
}

View file

@ -887,7 +887,9 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
_prefs.flood_advert_interval = 12; // 12 hours
_prefs.flood_max = 64;
_prefs.interference_threshold = 0; // disabled
#ifdef DEFAULT_AGC_RESET_INTERVAL
_prefs.agc_reset_interval = DEFAULT_AGC_RESET_INTERVAL;
#endif
// bridge defaults
_prefs.bridge_enabled = 1; // enabled
_prefs.bridge_delay = 500; // milliseconds

View file

@ -153,7 +153,9 @@ void loop() {
ui_task.loop();
#endif
rtc_clock.tick();
#ifdef P_FAN_CTRL
update_fan_control();
#endif
if (the_mesh.getNodePrefs()->powersaving_enabled && !the_mesh.hasPendingWork()) {
#if defined(NRF52_PLATFORM)
board.sleep(1800); // nrf ignores seconds param, sleeps whenever possible

View file

@ -644,6 +644,9 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
_prefs.flood_advert_interval = 12; // 12 hours
_prefs.flood_max = 64;
_prefs.interference_threshold = 0; // disabled
#ifdef DEFAULT_AGC_RESET_INTERVAL
_prefs.agc_reset_interval = DEFAULT_AGC_RESET_INTERVAL;
#endif
#ifdef ROOM_PASSWORD
StrHelper::strncpy(_prefs.guest_password, ROOM_PASSWORD, sizeof(_prefs.guest_password));
#endif

View file

@ -113,4 +113,7 @@ void loop() {
ui_task.loop();
#endif
rtc_clock.tick();
#ifdef P_FAN_CTRL
update_fan_control();
#endif
}