AP_HAL: remove unused init() from the interface

And make run() pure virtual to ensure future implementations provide it.
This commit is contained in:
Caio Marcelo de Oliveira Filho 2015-10-19 13:48:04 -02:00 committed by Andrew Tridgell
parent fe1dd1be25
commit 6fc60e2d5e
1 changed files with 1 additions and 4 deletions

View File

@ -67,10 +67,7 @@ public:
void (*_loop)(void);
};
virtual void init(int argc, char * const argv[]) const = 0;
// TODO: Make it pure virtual once all the boards implement it.
virtual void run(int argc, char * const argv[], Callbacks* callbacks) const {};
virtual void run(int argc, char * const argv[], Callbacks* callbacks) const = 0;
AP_HAL::UARTDriver* uartA;
AP_HAL::UARTDriver* uartB;