mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-04-19 06:23:44 +02:00
Modernize the code a bit, clean up most compilation warnings
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
void OpenIrisTasks::ScheduleRestart(int milliseconds)
|
||||
{
|
||||
taskYIELD();
|
||||
int initialTime = Helpers::getTimeInMillis();
|
||||
const auto initialTime = Helpers::getTimeInMillis();
|
||||
while (Helpers::getTimeInMillis() - initialTime <= milliseconds)
|
||||
{
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user