Mercurial > public > ostc4
comparison Discovery/Src/base.c @ 998:5a690195b6b7 GasConsumption
Added dual operation of scrubber timers:
In the previous version only one scrubber timer could be selected for operation. In the new version the activation of both timers is possible. In that case both timers will be displayed as well. To enable this a new activation item has been added to the scrubber menu.
| author | Ideenmodellierer |
|---|---|
| date | Wed, 23 Apr 2025 14:52:03 +0200 |
| parents | 6d8ae8fbccf5 |
| children | 3d9552e4997c 33b91584d827 |
comparison
equal
deleted
inserted
replaced
| 997:2f7531a8e922 | 998:5a690195b6b7 |
|---|---|
| 382 MX_UART_Init(); | 382 MX_UART_Init(); |
| 383 SDRAM_Config(); | 383 SDRAM_Config(); |
| 384 HAL_Delay( 100 ); | 384 HAL_Delay( 100 ); |
| 385 | 385 |
| 386 stateRealGetPointerWrite()->lastKnownBatteryPercentage = 0; // damit das nicht in settings kopiert wird. | 386 stateRealGetPointerWrite()->lastKnownBatteryPercentage = 0; // damit das nicht in settings kopiert wird. |
| 387 set_settings_to_Standard(); | 387 set_settings_to_Standard(); /* initialize setting structure with default value => will be overwritten by flash read operation */ |
| 388 mod_settings_for_first_start_with_empty_ext_flash(); | 388 mod_settings_for_first_start_with_empty_ext_flash(); |
| 389 ext_flash_read_settings(); | 389 ext_flash_read_settings(); |
| 390 if( newFirmwareVersionCheckViaSettings() ) // test for old firmware version in loaded settings | 390 if( newFirmwareVersionCheckViaSettings() ) // test for old firmware version in loaded settings |
| 391 { | 391 { |
| 392 wasFirmwareUpdateCheckBattery = 1; | 392 wasFirmwareUpdateCheckBattery = 1; |
| 393 set_settings_button_to_factory_with_individual_buttonBalance(); // will adapt individual values | 393 set_settings_button_to_factory_with_individual_buttonBalance(); // will adapt individual values |
| 394 } | 394 } |
| 395 //settingsGetPointer()->bluetoothActive = 0; /* MX_Bluetooth_PowerOff(); unnecessary as part of MX_GPIO_Init() */ | 395 |
| 396 //settingsGetPointer()->compassBearing = 0; | |
| 397 set_new_settings_missing_in_ext_flash(); // includes update of firmware version 161121 | 396 set_new_settings_missing_in_ext_flash(); // includes update of firmware version 161121 |
| 398 | 397 |
| 399 GFX_init( &pLayerInvisible ); | 398 GFX_init( &pLayerInvisible ); |
| 400 TIM_BACKLIGHT_init(); | 399 TIM_BACKLIGHT_init(); |
| 401 | 400 |
