Skip to content

Commit 125bca6

Browse files
committed
Always stop at maxCount
1 parent b30cdd3 commit 125bca6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DBAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ DBdeparr* DBAPI::getStationBoard(
143143
}
144144
reqDoc["ursprungsBahnhofId"] = stationId;
145145

146-
for (uint8_t offset = 0; offset < maxDuration; offset++) {
146+
for (uint8_t offset = 0; offset < maxDuration && cnt < maxCount; offset++) {
147147
// Get current time, if requesting more than one hour and no request time is set
148148
// Sanity check, that year is > 2020, so only successful synced time is used
149149
// Your device would probably not survive 2020 years without restart, huh?

0 commit comments

Comments
 (0)