Skip to content

Commit

Permalink
Merge branch 'master' into proper-length-check
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern authored Sep 23, 2024
2 parents c999808 + 1f8aa1e commit 5195f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/esp32/StoreForwardModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ uint32_t StoreForwardModule::getNumAvailablePackets(NodeNum dest, uint32_t last_
{
uint32_t count = 0;
if (lastRequest.find(dest) == lastRequest.end()) {
lastRequest[dest] = 0;
lastRequest.emplace(dest, 0);
}
for (uint32_t i = lastRequest[dest]; i < this->packetHistoryTotalCount; i++) {
if (this->packetHistory[i].time && (this->packetHistory[i].time > last_time)) {
Expand Down

0 comments on commit 5195f54

Please sign in to comment.