Skip to content

Commit fd0cb50

Browse files
committed
core:logicrom: update main task for OS API changes
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent df8d849 commit fd0cb50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/logicrom/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ int main(int argc, char *argv[])
139139
variant_init();
140140

141141
/* Start Loop task */
142-
os_create_task(arduino_task, NULL, FALSE);
142+
os_task_create(arduino_task, NULL, FALSE);
143143

144144
/* Main thread for running and handling events */
145145
while (1) {
@@ -151,6 +151,6 @@ int main(int argc, char *argv[])
151151
serialEventRun();
152152

153153
/* sleep is required for RTOS to work properly */
154-
os_sleep(50);
154+
os_task_sleep(50);
155155
}
156156
}

0 commit comments

Comments
 (0)