diff Discovery/Src/settings.c @ 138:cc9c18075e00 FlipDisplay

Removed no longer supported scooter code
author Ideenmodellierer
date Sat, 23 Feb 2019 21:10:51 +0100
parents 3834b6272ee5
children 5c0f80e6b37a
line wrap: on
line diff
--- a/Discovery/Src/settings.c	Tue Feb 19 21:48:32 2019 +0100
+++ b/Discovery/Src/settings.c	Sat Feb 23 21:10:51 2019 +0100
@@ -55,7 +55,7 @@
 {
     .versionFirst   = 1,
     .versionSecond 	= 4,
-    .versionThird   = 4,
+    .versionThird   = 5,
     .versionBeta    = 1,
 
     /* 4 bytes with trailing 0 */
@@ -1133,20 +1133,6 @@
 /*	uint32_t updateSettingsAllowedFromHeader;
  */
 
-/*	uint8_t scooterControl;
- */
-    if(Settings.scooterControl > 1)
-    {
-        Settings.scooterControl = 1;
-        corrections++;
-    }
-
-/*	char scooterDeviceAddress[12];
- */
-
-/*	char scooterDeviceName[19];
-*/
-
 /*	uint8_t ppo2sensors_deactivated;
  */
     if(Settings.ppo2sensors_deactivated > (1+2+4))
@@ -1327,39 +1313,6 @@
         corrections++;
     }
 
-/*	uint8_t scooterDrag;
- */
-    if(Settings.scooterDrag > 3)
-    {
-        Settings.scooterDrag = 3;
-        corrections++;
-    }
-
-/*	uint8_t scooterLoad;
- */
-    if(Settings.scooterLoad > 4)
-    {
-        Settings.scooterLoad = 4;
-        corrections++;
-    }
-
-/*	uint8_t scooterNumberOfBatteries;
- */
-    if(Settings.scooterNumberOfBatteries > 3)
-    {
-        Settings.scooterNumberOfBatteries = 3;
-        corrections++;
-    }
-
-/*	uint16_t scooterBattSize;
- */
-    if((Settings.scooterBattSize < 300) ||
-         (Settings.scooterBattSize > 5000))
-    {
-        Settings.scooterBattSize = 700;
-        corrections++;
-    }
-
 
 /*	uint8_t lastKnownBatteryPercentage;
  */
@@ -2568,8 +2521,6 @@
 
 uint8_t getLicence(void)
 {
-    //return 0xFF;
-    //return LICENCEBONEX;
     return hardwareDataGetPointer()->primaryLicence;
 }