fixed Display-Bug with Remain Distance
This commit is contained in:
parent
1f8b085598
commit
9ac161ee4c
@ -46,7 +46,6 @@ ESP8266WiFiMulti wifiMulti;
|
|||||||
bool startSetupMode = false;
|
bool startSetupMode = false;
|
||||||
|
|
||||||
Globals_t globals;
|
Globals_t globals;
|
||||||
uint32_t TravelDistance_highRes;
|
|
||||||
volatile uint32_t wheel_pulse = 0;
|
volatile uint32_t wheel_pulse = 0;
|
||||||
|
|
||||||
CRGB leds[1];
|
CRGB leds[1];
|
||||||
@ -619,7 +618,7 @@ void Display_Process()
|
|||||||
|
|
||||||
u8x8.setCursor(0, 1);
|
u8x8.setCursor(0, 1);
|
||||||
uint32_t DistRemain = globals.systemStatus == sysStat_Normal ? LubeConfig.DistancePerLube_Default : LubeConfig.DistancePerLube_Rain;
|
uint32_t DistRemain = globals.systemStatus == sysStat_Normal ? LubeConfig.DistancePerLube_Default : LubeConfig.DistancePerLube_Rain;
|
||||||
DistRemain -= TravelDistance_highRes / 1000;
|
DistRemain = DistRemain - (PersistenceData.TravelDistance_highRes_mm / 1000);
|
||||||
u8x8.printf(PSTR("Mode: %10s\n"), globals.systemStatustxt);
|
u8x8.printf(PSTR("Mode: %10s\n"), globals.systemStatustxt);
|
||||||
if (globals.systemStatus == sysStat_Error)
|
if (globals.systemStatus == sysStat_Error)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user