fix(color): Detect changes to telemetry sensors that return strings (#4071)

This commit is contained in:
philmoz
2023-09-20 11:40:08 +10:00
committed by GitHub
parent e4f845c844
commit 662bcb08d0
@@ -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();
}