Mercurial > public > ostc4
comparison Discovery/Src/base.c @ 765:da8126d5ea9f
After a firmware update, use the factory settings for button sensitivity if these exist, the default settings otherwise.
The factory settings for the buttons can be updated in the System menu / Reset menu / Maintenance / 'Store button factory defaults'.
author | heinrichsweikamp |
---|---|
date | Wed, 12 Apr 2023 09:24:44 +0200 |
parents | b392524753fb |
children | 2c243233c999 |
comparison
equal
deleted
inserted
replaced
764:c47fe41b2378 | 765:da8126d5ea9f |
---|---|
379 mod_settings_for_first_start_with_empty_ext_flash(); | 379 mod_settings_for_first_start_with_empty_ext_flash(); |
380 ext_flash_read_settings(); | 380 ext_flash_read_settings(); |
381 if( newFirmwareVersionCheckViaSettings() ) // test for old firmware version in loaded settings | 381 if( newFirmwareVersionCheckViaSettings() ) // test for old firmware version in loaded settings |
382 { | 382 { |
383 wasFirmwareUpdateCheckBattery = 1; | 383 wasFirmwareUpdateCheckBattery = 1; |
384 set_settings_button_to_standard_with_individual_buttonBalance(); // will adapt individual values | 384 set_settings_button_to_factory_with_individual_buttonBalance(); // will adapt individual values |
385 } | 385 } |
386 //settingsGetPointer()->bluetoothActive = 0; /* MX_Bluetooth_PowerOff(); unnecessary as part of MX_GPIO_Init() */ | 386 //settingsGetPointer()->bluetoothActive = 0; /* MX_Bluetooth_PowerOff(); unnecessary as part of MX_GPIO_Init() */ |
387 //settingsGetPointer()->compassBearing = 0; | 387 //settingsGetPointer()->compassBearing = 0; |
388 set_new_settings_missing_in_ext_flash(); // includes update of firmware version 161121 | 388 set_new_settings_missing_in_ext_flash(); // includes update of firmware version 161121 |
389 | 389 |