mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Tbeam 1W Fan and LNA Sequncing Fix
This commit is contained in:
parent
dee3e26ac0
commit
ad3a3bfb41
11 changed files with 61 additions and 13 deletions
|
|
@ -229,4 +229,7 @@ void loop() {
|
|||
ui_task.loop();
|
||||
#endif
|
||||
rtc_clock.tick();
|
||||
}
|
||||
#ifdef P_FAN_CTRL
|
||||
update_fan_control();
|
||||
#endif
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -113,4 +113,7 @@ void loop() {
|
|||
ui_task.loop();
|
||||
#endif
|
||||
rtc_clock.tick();
|
||||
#ifdef P_FAN_CTRL
|
||||
update_fan_control();
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue