1
0
forked from me/IronOS

Locking Mode

This commit is contained in:
Mel-kior
2020-10-11 00:07:34 +02:00
parent 2112173214
commit f9813ec494
34 changed files with 1197 additions and 705 deletions

View File

@@ -12,7 +12,7 @@
#include <stdint.h>
#include "stm32f1xx_hal.h"
#include "unit.h"
#define SETTINGSVERSION ( 0x21 )
#define SETTINGSVERSION ( 0x22 )
/*Change this if you change the struct below to prevent people getting \
out of sync*/
@@ -41,6 +41,7 @@ typedef struct {
uint8_t temperatureInF :1; // Should the temp be in F or C (true is F)
#endif
uint8_t descriptionScrollSpeed :1; // Description scroll speed
uint8_t lockingMode :2; // Store the locking mode
uint8_t KeepAwakePulse; // Keep Awake pulse power in 0.1 watts (10 = 1Watt)
uint16_t voltageDiv; // Voltage divisor factor
@@ -56,6 +57,7 @@ typedef struct {
uint16_t TempChangeLongStep; // Change the plus and minus button assigment
uint16_t TempChangeShortStep; // Change the plus and minus button assigment
uint32_t padding; // This is here for in case we are not an even divisor so
// that nothing gets cut off
//MUST BE LAST