Skip to content

Commit

Permalink
added fault state to health packet
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Nov 14, 2019
1 parent b3e1a13 commit 168461d
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 @@ -165,6 +165,7 @@ int get_health_pkt(void *dat) {
uint8_t car_harness_status_pkt;
uint8_t usb_power_mode_pkt;
uint8_t safety_mode_pkt;
uint8_t fault_pkt;
} *health = dat;

health->voltage_pkt = adc_get_voltage();
Expand All @@ -182,6 +183,7 @@ int get_health_pkt(void *dat) {
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);
health->fault_pkt = 0U; // TODO: populate this field

return sizeof(*health);
}
Expand Down

0 comments on commit 168461d

Please sign in to comment.