From 0e34e7121f422ce80f1bf59f9f9d549bcca76d16 Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Sun, 21 Aug 2022 15:47:22 +0200 Subject: [PATCH] changed PurgePulse Vars to uint16_t --- Software/src/common.h | 2 +- Software/src/config.cpp | 2 +- Software/src/config.h | 2 +- Software/src/globals.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Software/src/common.h b/Software/src/common.h index 5398f85..ca769fe 100644 --- a/Software/src/common.h +++ b/Software/src/common.h @@ -27,7 +27,7 @@ #endif #define SW_VERSION_MAJOR 1 -#define SW_VERSION_MINOR 0 +#define SW_VERSION_MINOR 1 #ifndef OTA_DELAY #define OTA_DELAY 50 // ticks -> 10ms / tick diff --git a/Software/src/config.cpp b/Software/src/config.cpp index 0f4308e..37e460d 100644 --- a/Software/src/config.cpp +++ b/Software/src/config.cpp @@ -4,7 +4,7 @@ I2C_eeprom ee(0x50, EEPROM_SIZE_BYTES); LubeConfig_t LubeConfig; persistenceData_t PersistenceData; -const uint16_t eeVersion = 1; // inc +const uint16_t eeVersion = 2; // inc boolean eeAvailable = false; const uint16_t startofLubeConfig = 16; diff --git a/Software/src/config.h b/Software/src/config.h index b8eb81f..555cc5d 100644 --- a/Software/src/config.h +++ b/Software/src/config.h @@ -83,7 +83,7 @@ typedef struct uint32_t TireWidthHeight_Ratio = 70; uint32_t RimDiameter_Inch = 18; uint32_t DistancePerRevolution_mm = 2000; - uint8_t BleedingPulses = 25; + uint16_t BleedingPulses = 25; SpeedSource_t SpeedSource = SOURCE_IMPULSE; #ifdef FEATURE_ENABLE_GPS GPSBaudRate_t GPSBaudRate = BAUD_115200; diff --git a/Software/src/globals.h b/Software/src/globals.h index 82bb35d..711550f 100644 --- a/Software/src/globals.h +++ b/Software/src/globals.h @@ -28,7 +28,7 @@ typedef struct Globals_s tSystem_Status systemStatus = sysStat_Startup; tSystem_Status resumeStatus = sysStat_Startup; char systemStatustxt[16] = ""; - uint8_t purgePulses = 0; + uint16_t purgePulses = 0; eEERequest requestEEAction = EE_IDLE; char DeviceName[33]; uint32_t FlashVersion;