Events for modular UI and other listeners

This commit is contained in:
Sassa NF
2024-10-05 16:35:01 +01:00
parent 0c760610df
commit bdd00039b2
9 changed files with 175 additions and 50 deletions
+10
View File
@@ -55,3 +55,13 @@ int WaterfallChart::x2pos(float x)
return width * (x - min_x) / (max_x - min_x);
}
void WaterfallChart::onEvent(Event &e)
{
if (e.type != DETECTED)
{
return;
}
updatePoint(e.time_ms, e.detected.freq, e.detected.rssi);
}