Don't cache time in a variable.

A little weirdness in the code that has stuck around for a long, long
time. It's really not necessary and mostly just confusing.
This commit is contained in:
Henrik Rydgård committed 2020-09-24 23:52:43 +02:00
1 parent c4c7897a26
commit 054acf768c
27 files changed
+68 -125

No files matched your search

+2 -2
View File
@@ -427,12 +427,12 @@ void RemoteISOConnectScreen::update() {
break;
case ScanStatus::FAILED:
nextRetry_ = real_time_now() + 15.0;
nextRetry_ = time_now_d() + 15.0;
status_ = ScanStatus::RETRY_SCAN;
break;
case ScanStatus::RETRY_SCAN:
if (nextRetry_ < real_time_now()) {
if (nextRetry_ < time_now_d()) {
status_ = ScanStatus::SCANNING;
nextRetry_ = 0.0;