Broadcast SDC state

This commit is contained in:
Jasper Blanckenburg 2023-04-29 23:44:45 +02:00
parent 29b411e4af
commit c43b6a3b6e
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ void can_init(CAN_HandleTypeDef *handle) {
HAL_StatusTypeDef can_send_status() {
uint8_t data[6];
data[0] = ts_state.current_state;
data[0] = ts_state.current_state | (sdc_closed << 7);
data[1] = current_soc;
ftcan_marshal_unsigned(&data[2], min_voltage, 2);
ftcan_marshal_signed(&data[4], max_temp, 2);