Mercurial > public > ostc4
diff Discovery/Src/tMenuEditSystem.c @ 138:cc9c18075e00 FlipDisplay
Removed no longer supported scooter code
author | Ideenmodellierer |
---|---|
date | Sat, 23 Feb 2019 21:10:51 +0100 |
parents | ee7f2cd9b9b4 |
children | b2a9e9b02df0 |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditSystem.c Tue Feb 19 21:48:32 2019 +0100 +++ b/Discovery/Src/tMenuEditSystem.c Sat Feb 23 21:10:51 2019 +0100 @@ -29,7 +29,7 @@ /* Includes ------------------------------------------------------------------*/ #include "tMenuEditSystem.h" -#include "data_exchange_main.h" // for DataEX_scooterDataFound() +#include "data_exchange_main.h" #include "externLogbookFlash.h" #include "gfx_fonts.h" #include "ostc.h" @@ -768,10 +768,6 @@ text[3] = ' '; switch(settingsGetPointer()->tX_customViewPrimary) { - case CVIEW_Scooter: - text[4] = TXT_2BYTE; - text[5] = TXT2BYTE_ScooterMonitor; - break; case CVIEW_sensors: text[4] = TXT_2BYTE; text[5] = TXT2BYTE_O2monitor; @@ -937,9 +933,6 @@ uint8_t newValue; switch(settingsGetPointer()->tX_customViewPrimary) { - case CVIEW_Scooter: - newValue = CVIEW_sensors; - break; case CVIEW_sensors: newValue = CVIEW_sensors_mV; break; @@ -969,10 +962,7 @@ break; case CVIEW_noneOrDebug: default: - if(getLicence() == LICENCEBONEX) - newValue = CVIEW_Scooter; - else - newValue = CVIEW_sensors; + newValue = CVIEW_sensors; break; } settingsGetPointer()->tX_customViewPrimary = newValue; @@ -1411,13 +1401,6 @@ snprintf(&text[2],10,": %01.2fV",stateRealGetPointer()->lifeData.battery_voltage); write_label_var( 30, 800, ME_Y_LINE4, &FontT42, text); - - if(DataEX_scooterDataFound()) - { - snprintf(&text[0],30,"Ext: %01.1fV @ %01.1f \140C",stateUsed->lifeData.scooterSpannung, stateUsed->lifeData.scooterTemperature / 10.0f); - write_label_var( 30, 800, ME_Y_LINE5, &FontT42, text); - } - snprintf(&text[0],30,"Code: %X",getLicence()); write_label_var( 30, 800, ME_Y_LINE6, &FontT42, text); break;