Changeset 9 for trunk/firmware/CubeMX/Src
- Timestamp:
- Jun 5, 2023, 9:58:44 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/firmware/CubeMX/Src/main.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/firmware/CubeMX/Src/main.c
r8 r9 397 397 old_time = new_time; // Saving current time value 398 398 399 //HAL_IWDG_Refresh(&hiwdg); // 0.5s RESET399 HAL_IWDG_Refresh(&hiwdg); // 0.5s RESET 400 400 401 401 Callibration(); … … 2263 2263 low_bat_shutdown_is_active = 0; 2264 2264 sys_data.s.device_status &= ~(1 << LOWBAT_ERROR); 2265 ExternalRedLED_Management = &DoNothing;2265 if (ExternalRedLED_Management == ExternalRedLED5ShortOnThenLongPauseBlinking) ExternalRedLED_Management = &DoNothing; 2266 2266 } 2267 2267 } … … 3210 3210 // Recording ADC value drop under control current 3211 3211 sys_data.s.copper_v_drop_adc = ubbsense_adc; 3212 sys_data.s.copper_v_drop_adc_limit = (sys_data.s.copper_v_drop_adc * 110) / 100; 3212 sys_data.s.copper_v_drop_adc_limit = (sys_data.s.copper_v_drop_adc * 110) / 100; // +10% 3213 3213 3214 3214 SEGGER_RTT_printf(0, "\t\t\tFinal voltage-drop ADC value: %4u. Final voltage-drop value: %3u mV\n", sys_data.s.copper_v_drop_adc, sys_data.s.copper_v_drop); … … 3220 3220 Callibration = &DoNothing; 3221 3221 //InrushCurrentManagement = &InrushCurrentDetected; // Test program disables this, so we must re-enable it after callibration 3222 MX_IWDG_Init(); 3222 3223 } 3223 3224
Note:
See TracChangeset
for help on using the changeset viewer.
