Skip to content

Commit

Permalink
fix(color): Detect changes to telemetry sensors that return strings (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored Sep 20, 2023
1 parent e4f845c commit 662bcb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions radio/src/telemetry/telemetry_sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ uint32_t getDistFromEarthAxis(int32_t latitude)
void TelemetryItem::setValue(const TelemetrySensor & sensor, const char * val, uint32_t, uint32_t)
{
strncpy(text, val, sizeof(text));
// Save hash of string so changes can be detected quickly
value = hash(text, sizeof(text));
setFresh();
}

Expand Down

0 comments on commit 662bcb0

Please sign in to comment.