Browse Source

HAL_Linux: more generic fix for scheduler issues in example sketches

this ensures drivers can run
master
Andrew Tridgell 11 years ago
parent
commit
b99ae63cbb
  1. 3
      libraries/AP_HAL_Linux/AP_HAL_Linux_Main.h

3
libraries/AP_HAL_Linux/AP_HAL_Linux_Main.h

@ -9,7 +9,8 @@ int main (int argc, char * const argv[]) { \ @@ -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;\
}\
}

Loading…
Cancel
Save