Refactor Heltec T114 sensor management

This commit is contained in:
João Brázio 2026-02-05 13:35:04 +00:00
parent f0aa12faac
commit 5cb26b91f6
No known key found for this signature in database
GPG key ID: 56A1490716A324DD
5 changed files with 48 additions and 59 deletions

View file

@ -29,6 +29,12 @@ void setup() {
board.begin();
#if defined(MESH_DEBUG) && defined(NRF52_PLATFORM)
// give some extra time for serial to settle so
// boot debug messages can be seen on terminal
delay(5000);
#endif
// For power saving
lastActive = millis(); // mark last active time since boot
@ -42,6 +48,7 @@ void setup() {
#endif
if (!radio_init()) {
MESH_DEBUG_PRINTLN("Radio init failed!");
halt();
}