[Taranis X9E] 2.5s Timer with small graphics for Power OFF

This commit is contained in:
bsongis
2015-03-20 11:34:48 +01:00
parent b80cc973fe
commit 5a2d373edd
6 changed files with 76 additions and 44 deletions
+11 -5
View File
@@ -791,11 +791,17 @@ int main()
}
}
if (pwrCheck() == e_power_off && state != ST_FLASHING && state != ST_USB) {
lcdOff(); // this drains LCD caps
pwrOff();
for (;;) {
// Wait for power to go off
if (state != ST_FLASHING && state != ST_USB) {
#if defined(REV9E)
if (pwrPressed()) {
#else
if (pwrCheck() == e_power_off) {
#endif
lcdOff(); // this drains LCD caps
pwrOff();
for (;;) {
// Wait for power to go off
}
}
}