HAL_Linux_Class: Init spi before rcin & rcout, because raspilot rcin & rcout use spi.

This commit is contained in:
raspilot 2015-09-30 19:49:59 +08:00 committed by Andrew Tridgell
parent 831bb554e7
commit aa4d16622e
1 changed files with 1 additions and 1 deletions

View File

@ -227,11 +227,11 @@ void HAL_Linux::init(int argc,char* const argv[]) const
#else
i2c->begin();
#endif
spi->init(NULL);
rcout->init(NULL);
rcin->init(NULL);
uartA->begin(115200);
uartE->begin(115200);
spi->init(NULL);
analogin->init(NULL);
utilInstance.init(argc+gopt.optind-1, &argv[gopt.optind-1]);
}