companion: Suspend radio when hibernating

This should significantly reduce power consumption in hibernation.

Fixes: #1014

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Signed-off-by: Frieder Schrempf <frieder@fris.de> # generalize for all radios and UIs
Este commit está contenido en:
Jaroslav Škarvada
2025-11-22 15:05:01 +01:00
cometido por Frieder Schrempf
padre f5a56c537f
commit 07e7e2d44b
Se han modificado 4 ficheros con 9 adiciones y 2 borrados
+4 -2
Ver fichero
@@ -292,10 +292,12 @@ void UITask::shutdown(bool restart){
#endif // PIN_BUZZER
if (restart)
if (restart) {
_board->reboot();
else
} else {
radio_driver.powerOff();
_board->powerOff();
}
}
void UITask::loop() {