InertialSensor: add reboot option in MPU6000 test

This commit is contained in:
Andrew Tridgell 2012-12-27 21:29:00 +11:00
parent 212728be34
commit 0adc4afcb5

View File

@ -64,7 +64,8 @@ void loop(void)
" c) calibrate accelerometers\r\n"
" d) display offsets and scaling\r\n"
" l) level (capture offsets from level)\r\n"
" t) test"));
" t) test\r\n"
" r) reboot"));
// wait for user input
while( !hal.console->available() ) {
@ -92,6 +93,10 @@ void loop(void)
if( user_input == 't' || user_input == 'T' ) {
run_test();
}
if( user_input == 'r' || user_input == 'R' ) {
hal.scheduler->reboot();
}
}
}