mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
bugfix - ordering is oposite in events page and mqtt publish
This commit is contained in:
parent
086c3dfa29
commit
eb901da385
4 changed files with 14 additions and 5 deletions
|
@ -30,7 +30,7 @@ String events_processor(const String& var) {
|
|||
}
|
||||
}
|
||||
// Sort events by timestamp
|
||||
std::sort(order_events.begin(), order_events.end(), compareEventsByTimestamp);
|
||||
std::sort(order_events.begin(), order_events.end(), compareEventsByTimestampDesc);
|
||||
unsigned long timestamp_now = millis();
|
||||
|
||||
// Generate HTML and debug output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue