diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-01-30 20:46:07 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-01-30 20:46:07 +0100 |
commit | 134c20875f03d1885d0f08a8fb2717166d6e41ba (patch) | |
tree | 3b0a48265d31aa6097886f0ac6570cc39f6a6047 /src/system.h | |
parent | f92e6d19a901941ac608af4fd658834d0404abb0 (diff) |
system: make shutdown method private and actually use it
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h index e944bb2..6e2d1b0 100644 --- a/src/system.h +++ b/src/system.h @@ -6,13 +6,17 @@ #define SHUTDOWN_THRESHOLD 2048 +/** + * Contains the system idle loop. Checks for button presses, handles + * standby/resume, reads data from the Modem and updates the Display. + */ class System { private: uint16_t want_shutdown; + void shutdown(void); public: System() { want_shutdown = 0; }; void loop(void); - void shutdown(void); }; extern System rocket; |