Ignore:
Timestamp:
May 24, 2023, 1:47:09 PM (2 years ago)
Author:
f.jahn
Message:

12V variant is working good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/firmware/CubeMX/Src/stm32g0xx_it.c

    r4 r7  
    100100//extern uint32_t overload_shutdown_time;
    101101extern void (*InrushCurrentManagement)(void);
     102extern int low_bat_shutdown_is_active;
    102103
    103104//extern uint16_t i_samples[I_RMS_SAMPLES_COUNT];
     
    219220
    220221  rawMOSFETsVoltageDrop = ADC_values[MOSFETS_VDROP_CHANNEL];
     222
     223  /*if (ADC_values[U_BAT_CHANNEL] < ADC_BAT_CRITICAL_VOLTAGE)
     224  {
     225          MOSFETS_Management = &OpenBothMOSFETSVeryFast;
     226          if (low_bat_shutdown_is_active == 0)
     227          {
     228                        sys_data.s.ubsenseb_voltage = 0;
     229                        low_bat_shutdown_is_active = 1;
     230                        sys_data.s.device_status |= (1 << LOWBAT_ERROR);
     231                        sys_data.s.lowbat_error_cnt++;
     232                        statDataChanged = 1;
     233          }
     234  }*/
    221235
    222236  MOSFETS_Management();
Note: See TracChangeset for help on using the changeset viewer.