|
|
@ -27,7 +27,7 @@ void idle() |
|
|
|
void wake() |
|
|
|
{ |
|
|
|
power_state = POWER_STATE_WAKE; |
|
|
|
M5.Axp.ScreenBreath(12); |
|
|
|
M5.Axp.ScreenBreath(10); |
|
|
|
} |
|
|
|
|
|
|
|
int PowerManagement(int pid, unsigned int signal) |
|
|
@ -36,6 +36,7 @@ int PowerManagement(int pid, unsigned int signal) |
|
|
|
if (signal & SIGNAL_START) |
|
|
|
{ |
|
|
|
Kernel_signal_mask(pid, SIGNAL_START | SIGNAL_STOP | SIGNAL_INPUT_A | SIGNAL_INPUT_B | SIGNAL_TICK); |
|
|
|
wake(); |
|
|
|
} |
|
|
|
|
|
|
|
// Accumulate time every time we run
|
|
|
|