Add support for the power button #528

This commit is contained in:
Jm Casler
2020-11-22 18:50:14 -08:00
parent 3ab9d2a50e
commit 2bd40b7053
3 changed files with 48 additions and 12 deletions

View File

@@ -134,6 +134,11 @@ bool Power::setup()
return found;
}
void Power::shutdown() {
DEBUG_MSG("Shutting down\n");
axp.shutdown();
}
/// Reads power status to powerStatus singleton.
//
// TODO(girts): move this and other axp stuff to power.h/power.cpp.