HAL_Linux: more generic fix for scheduler issues in example sketches

this ensures drivers can run
This commit is contained in:
Andrew Tridgell 2014-05-16 22:40:38 +10:00
parent 30f5e2c37f
commit b99ae63cbb
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ int main (int argc, char * const argv[]) { \
hal.init(argc, argv); \
setup();\
hal.scheduler->system_initialized(); \
for(;;) loop();\
for(;;) { loop(); \
hal.scheduler->delay_microseconds(500); } \
return 0;\
}\
}