add safety mode to health packet

master
Riccardo 2019-10-24 15:33:27 -07:00
parent 101238c7f6
commit e2e2be92c9
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,7 @@ int get_health_pkt(void *dat) {
uint8_t gas_interceptor_detected_pkt;
uint8_t car_harness_status_pkt;
uint8_t usb_power_mode_pkt;
uint8_t safety_mode_pkt;
} *health = dat;
health->voltage_pkt = adc_get_voltage();
@ -184,6 +185,7 @@ int get_health_pkt(void *dat) {
health->gmlan_send_errs_pkt = gmlan_send_errs;
health->car_harness_status_pkt = car_harness_status;
health->usb_power_mode_pkt = usb_power_mode;
health->safety_mode_pkt = (uint8_t)(current_safety_mode);
return sizeof(*health);
}