m5stack / TimerCam-arduino

TimerCam Arduino Library
MIT License
45 stars 25 forks source link

bat_disable_output not working when wake on timer #14

Open Zoogara opened 1 year ago

Zoogara commented 1 year ago

Scenario 1: Timer has been set to wake at hour 13:00 on day 8. Camera wakes on timer. When untit finishes processing and bat_disable_output() is called, camera does not turn off.

Scenario 2: Timer has been set to wake at hour 13:00 on day 8. Before then power button is pressed and camera turns on, completes processing and powers down when bat_disable_output() is called. Later camera wakes on time, does processing but then does not turn off.

Only difference is method of waking, scenario 1 camera does not turn off and flattens battery. Scenario 2, camera wakes on button press, turns off, wakes on timer and then doesn't turn off.