diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-03-28 18:07:34 +0100 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-03-28 18:07:34 +0100 |
commit | 94d434ca1c60d4ff9e518fdcdcfd867abf03c4ac (patch) | |
tree | 40f85ce5978af4f6f1f0db1ce914d19f1f6a44b5 /metawatch/metawatch.h | |
parent | ff3e0c160733707ce0bb835362d2730b407b0126 (diff) | |
download | sowatch-94d434ca1c60d4ff9e518fdcdcfd867abf03c4ac.tar.gz sowatch-94d434ca1c60d4ff9e518fdcdcfd867abf03c4ac.zip |
add change mode command to workaround mode priorities
Diffstat (limited to 'metawatch/metawatch.h')
-rw-r--r-- | metawatch/metawatch.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/metawatch/metawatch.h b/metawatch/metawatch.h index 5401319..2fd2794 100644 --- a/metawatch/metawatch.h +++ b/metawatch/metawatch.h @@ -67,7 +67,8 @@ public: ReadBatteryVoltage = 0x56, ReadBatteryVoltageResponse = 0x57, ReadLightSensor = 0x58, - ReadLightSensorResponse = 0x59 + ReadLightSensorResponse = 0x59, + ChangeMode = 0xa6 }; enum Mode { @@ -229,6 +230,7 @@ protected: void configureLcdIdleSystemArea(bool entireScreen); void updateLcdDisplay(Mode mode, int startRow = 0, int numRows = 0); void loadLcdTemplate(Mode mode, int templ); + void changeMode(Mode mode); void enableButton(Mode mode, Button button, ButtonPress press); void disableButton(Mode mode, Button button, ButtonPress press); |