Skip to content

Commit

Permalink
add safety mode to health packet
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Oct 24, 2019
1 parent 101238c commit e2e2be9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions board/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);
}
Expand Down

0 comments on commit e2e2be9

Please sign in to comment.