Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of dgps by
Diff: mavcommands.h
- Revision:
- 25:b7f861fc8ddd
- Parent:
- 24:e65416d6de22
diff -r e65416d6de22 -r b7f861fc8ddd mavcommands.h --- a/mavcommands.h Tue Apr 22 14:15:27 2014 +0000 +++ b/mavcommands.h Tue Apr 22 14:18:30 2014 +0000 @@ -76,6 +76,6 @@ void handleNextCmd(); void setupCmds(); void setup(){if(!initialized){setupCmds();initialized=true;}} - void run(){handleNextCmd();} + void run(){setup();handleNextCmd();} static MavCmd& get(){if(mavcmd==NULL){mavcmd=new MavCmd();}return *mavcmd;} };