Przeglądaj źródła

display: Fix timeouts.

Mathias Gottschlag 5 lat temu
rodzic
commit
72e4b09b3e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      display/firmware/src/radio.rs

+ 1
- 1
display/firmware/src/radio.rs Wyświetl plik

254
     }
254
     }
255
 
255
 
256
     fn expired(&self) -> bool {
256
     fn expired(&self) -> bool {
257
-        self.timer.now().elapsed(self.start) > self.timeout
257
+        self.start.elapsed(self.timer.now()) > self.timeout
258
     }
258
     }
259
 }
259
 }

Ładowanie…
Anuluj
Zapisz