Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
siannnhannn committed Jul 22, 2024
1 parent 98e5101 commit ff4607c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/batt/src/batt.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ typedef struct {
uint8_t batteryPercent;
} CAN_Message_BatteryStatus;

static u_int8_t batterypercent;
static uint8_t batterypercent;

static void batt_1Hz();

Expand All @@ -33,6 +33,8 @@ static void batt_1Hz()
batteryPercent = 0;
}


void CANTX_populate_BATT_BatteryPercentData(
m->batteryPercent = batteryPercent;)
struct CAN_Message_BatteryStatus * const m)
{
m->batteryPercent = batteryPercent;
}

0 comments on commit ff4607c

Please sign in to comment.