Преглед изворни кода

单电芯欠压和总电压欠压都用欠压报给PSXXX

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui пре 5 година
родитељ
комит
ef0822b1c5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Application/app/protocol_old.c

+ 1 - 1
Application/app/protocol_old.c

@@ -67,7 +67,7 @@ static int get_response_data(uint8_t *data, uint8_t operate, uint8_t result){
 		}
 	}
 	
-	response->health_state = *((uint16_t *)bms_health());
+	response->health_state = *((uint16_t *)bms_health()) | (bms_health()->sigle_cell_lower_voltage << 1);
 	response->balance_mask = 0x0;
 	response->misc_status = (ml5238_is_discharging() << 1) | (ml5238_is_charging() << 2);
 	response->misc_status |= (AUX_VOL_IS_OPEN() << 3) |(io_state()->aux_lock_detect << 5);