diff options
author | Ben V. Brown <[email protected]> | 2017-07-11 19:52:29 +1000 |
---|---|---|
committer | Ben V. Brown <[email protected]> | 2017-07-11 19:52:29 +1000 |
commit | b793b61bb64331972947d7895bf1cc0afc258085 (patch) | |
tree | d5874399a8925c6624f3ed36139e085220de84b4 /workspace/ts100/inc/Settings.h | |
parent | 52e3247f7eefdb2992f13a5a3d3c33d8f743db4b (diff) | |
download | IronOS-b793b61bb64331972947d7895bf1cc0afc258085.tar.gz IronOS-b793b61bb64331972947d7895bf1cc0afc258085.zip |
V1.12 - decreased step size for sensitivityv1.12
Collapsed motion being enabled into the motion sensitivity menu. Fixing
#20
More options for the sensitivity as well.
Diffstat (limited to 'workspace/ts100/inc/Settings.h')
-rw-r--r-- | workspace/ts100/inc/Settings.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/workspace/ts100/inc/Settings.h b/workspace/ts100/inc/Settings.h index dbc614f1..cbbbed96 100644 --- a/workspace/ts100/inc/Settings.h +++ b/workspace/ts100/inc/Settings.h @@ -11,11 +11,7 @@ #define SETTINGS_H_ #include <stdint.h> #include "stm32f10x_flash.h" -#define SETTINGSVERSION 11 /*Change this if you change the struct below to prevent people getting out of sync*/ -//Motion Sensitivity -#define MOTION_HIGH (0x00) -#define MOTION_MED (0x01) -#define MOTION_LOW (0x02) +#define SETTINGSVERSION 12 /*Change this if you change the struct below to prevent people getting out of sync*/ //Display Speeds #define DISPLAYMODE_FAST (0x00) #define DISPLAYMODE_MEDIUM (0x01) @@ -34,10 +30,9 @@ struct { uint8_t version; //Used to track if a reset is needed on firmware upgrade uint8_t SleepTime; //minutes timeout to sleep uint8_t cutoutVoltage:5; //The voltage we cut out at for under voltage - uint8_t movementEnabled:1; //If movement is enabled uint8_t displayTempInF:1; //If we need to convert the C reading to F uint8_t flipDisplay:1; //If true we want to invert the display for lefties - uint8_t sensitivity:5; //Sensitivity of accelerometer (4 bits) + uint8_t sensitivity:6; //Sensitivity of accelerometer (5 bits) uint8_t ShutdownTime:6; //Time until unit shuts down if left alone uint8_t displayUpdateSpeed:2; //How fast the display updates / temp showing mode uint8_t temperatureRounding:2; //Rounding mode for the temperature |