Browse Source

reset cell balance counter, when don't need balance

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 4 years ago
parent
commit
3dad5f6f8c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Application/app/sox/state.c

+ 1 - 0
Application/app/sox/state.c

@@ -654,6 +654,7 @@ static void check_cell_balance(uint8_t current_max_index){
 		return;
 	}
 	if ((!_bms_state.pack_balancing && _bms_state.cell_max_vol < MAX_CELL_VOLTAGE_FOR_BALACNE) || _bms_state.pack_balancing){
+		debounce_reset(_cell_balance);
 		return;
 	}
 	if (_bms_state.cell_max_vol >= MAX_CELL_VOLTAGE_FOR_BALACNE){