Przeglądaj źródła

加入uart reinit的计数

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 4 lat temu
rodzic
commit
d6ef185783
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Application/app/sox/state.c

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

@@ -129,7 +129,7 @@ void bms_state_log(void){
 	state_debug("open dfet %d - %d - 0x%x - %d\n", open_dfet, open_dfet_failt, close_dfet_reson, close_dfet_no_hall);
 	state_debug("Reset Reson 0x%x\n", bsp_get_rst_reson());
 	state_debug("BackUp value 0x%x\n", bsp_get_backup());
-	state_debug("Debug: %d, %d\n", shark_uart_timeout(), io_state()->hall_detect);
+	state_debug("Debug: %d, %d. uart reinit=%d\n", shark_uart_timeout(), io_state()->hall_detect, uart_reinit_count);
 	log_no_hall_time();
 #if 0
 	state_debug("Charging: %d\n", _bms_state.charging);