std::chrono::seconds::duration should just be std::chrono::seconds
parent
5112e1d2f9
commit
781b23c0e7
|
|
@ -226,7 +226,7 @@ bool Device::goOnline() {
|
||||||
updateLEDState();
|
updateLEDState();
|
||||||
|
|
||||||
// wait until communication is enabled or 10 seconds, whichever comes first
|
// wait until communication is enabled or 10 seconds, whichever comes first
|
||||||
while((std::chrono::system_clock::now() - startTime) < std::chrono::seconds::duration(10)) {
|
while((std::chrono::system_clock::now() - startTime) < std::chrono::seconds(10)) {
|
||||||
if(latestResetStatus && latestResetStatus->comEnabled)
|
if(latestResetStatus && latestResetStatus->comEnabled)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -246,7 +246,7 @@ bool Device::goOffline() {
|
||||||
online = false;
|
online = false;
|
||||||
|
|
||||||
// wait until communication is disabled or 10 seconds, whichever comes first
|
// wait until communication is disabled or 10 seconds, whichever comes first
|
||||||
while((std::chrono::system_clock::now() - startTime) < std::chrono::seconds::duration(10)) {
|
while((std::chrono::system_clock::now() - startTime) < std::chrono::seconds(10)) {
|
||||||
if(latestResetStatus && !latestResetStatus->comEnabled)
|
if(latestResetStatus && !latestResetStatus->comEnabled)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue