|
|
@@ -78,8 +78,9 @@ void process_bms_message(can_frame_t *frame, int len){
|
|
|
bresp.max_temp = measure_value()->pack_temp[i];
|
|
|
}
|
|
|
}
|
|
|
- bms_health()->is_calibrated = (get_soc()->flags & SOC_FLAG_CALIBRATED) != 0;
|
|
|
bresp.health = *((uint32_t *)bms_health());
|
|
|
+ bresp.health &= ~(1 << 8);
|
|
|
+ bresp.health |= ((get_soc()->flags & SOC_FLAG_CALIBRATED) != 0) << 8;
|
|
|
stat_cmd_resp_t sresp;
|
|
|
sresp.insert = bms_insert;
|
|
|
sresp.is_charging = bms_state_get()->charging;
|