mirror of
https://github.com/Genaker/LoraSA.git
synced 2026-08-07 17:33:00 +02:00
Events for modular UI and other listeners
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user