Cleaning up files

Fixing warnings
Add powerDisplayToggle
This commit is contained in:
Ben V. Brown
2017-07-24 23:03:56 +10:00
parent f89fd5c651
commit 8a503f84e2
7 changed files with 32 additions and 21 deletions

View File

@@ -11,6 +11,7 @@
#define SETTINGS_H_
#include <stdint.h>
#include "stm32f10x_flash.h"
#include "Oled.h"
#define SETTINGSVERSION 13 /*Change this if you change the struct below to prevent people getting out of sync*/
//Display Speeds
#define DISPLAYMODE_FAST (0x00)
@@ -29,7 +30,8 @@ struct {
uint32_t SleepTemp; //temp to drop to in sleep
uint8_t version; //Used to track if a reset is needed on firmware upgrade
uint8_t SleepTime; //minutes timeout to sleep
uint8_t cutoutSetting:5; //(3 bits) The voltage we cut out at for under voltage
uint8_t cutoutSetting:4; //(3 bits) The voltage we cut out at for under voltage
uint8_t powerDisplay:1; //Toggle to swap the arrows with a power readout instead
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:6; //Sensitivity of accelerometer (5 bits)