Updated driver display to have lap count

This commit is contained in:
2026-04-03 16:39:41 +02:00
parent ecccadc913
commit a052888a38
4 changed files with 19 additions and 20 deletions

View File

@@ -7,6 +7,7 @@ volatile float vbat_global = 0;
volatile float teng_global = 0;
volatile int gps_trigger_global = 0;
volatile uint32_t last_lap_time_global = 0;
volatile uint16_t lap_count_global = 0;
void vbatGlobalRead(float &out) { out = vbat_global; }
@@ -23,3 +24,7 @@ void gpsTriggerGlobalWrite(const int &in) { gps_trigger_global = in; }
void lastLapTimeGlobalRead(uint32_t &out) { out = last_lap_time_global; }
void lastLapTimeGlobalWrite(const uint32_t &in) { last_lap_time_global = in; }
void lapCountGlobalRead(uint16_t &out) { out = lap_count_global; }
void lapCountGlobalWrite(const uint16_t &in) { lap_count_global = in; }