Commit Graph

2 Commits

Author SHA1 Message Date
Sylvain Munaut 84470dd095 firmware/main: Rework main loop skeleton
Basically if VBUS is present, we enable USB and we don't go to
sleep to make sure we react in time.

Also add skeleton to read and handle button press events.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2023-03-16 10:07:57 +01:00
Sylvain Munaut bbd3486f8c firmware: Import the main firmware
This is the state that was used for the battery testing, so
import as-is to keep a record of changes.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2023-03-12 11:05:07 +01:00