Skip to content

Commit

Permalink
function name correction
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed Feb 25, 2025
1 parent 72c2c14 commit 60aef00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/station_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace STATION_Utils {
return false;
}

void cleanObjectHeard() {
void cleanObjectsHeard() {
for (auto it = lastHeardObjects.begin(); it != lastHeardObjects.end(); ) {
if (millis() - it->lastHeardTime >= 9.75 * 60 * 1000) { // 9.75 = 9min 45secs
it = lastHeardObjects.erase(it); // erase() returns the next valid iterator
Expand All @@ -62,7 +62,7 @@ namespace STATION_Utils {
}

bool checkObjectTime(const String& packet) {
cleanObjectHeard();
cleanObjectsHeard();

int objectIDIndex = packet.indexOf(":;");
String object = packet.substring(objectIDIndex + 2, objectIDIndex + 11);
Expand Down

0 comments on commit 60aef00

Please sign in to comment.