introduce shutdownPeripherals in NRF52Board to prepare for shutdown

This commit is contained in:
Florent committed 2026-07-07 10:20:03 -04:00
1 parent fec88e1300
commit 369016acc9
3 files changed
+8 -3

No files matched your search

+5 -1
View File
@@ -298,7 +298,7 @@ float NRF52Board::getMCUTemperature() {
return temp * 0.25f; // Convert to *C
}
void NRF52Board::powerOff() {
void NRF52Board::shutdownPeripherals() {
// Power off the display if any
#ifdef DISPLAY_CLASS
display.turnOff();
@@ -318,6 +318,10 @@ void NRF52Board::powerOff() {
// Flush serial buffers
Serial.flush();
delay(100);
}
void NRF52Board::powerOff() {
shutdownPeripherals();
// Enter SYSTEMOFF
uint8_t sd_enabled = 0;