MPU6k: don't init the Wire library

we don't use Wire any more
This commit is contained in:
Andrew Tridgell 2011-12-28 20:35:52 +11:00
parent 955dfe0226
commit e1c9c063a5
1 changed files with 0 additions and 2 deletions

View File

@ -5,7 +5,6 @@
// //
#include <FastSerial.h> #include <FastSerial.h>
#include <Wire.h>
#include <SPI.h> #include <SPI.h>
#include <Arduino_Mega_ISR_Registry.h> #include <Arduino_Mega_ISR_Registry.h>
#include <AP_PeriodicProcess.h> #include <AP_PeriodicProcess.h>
@ -24,7 +23,6 @@ void setup(void)
Serial.begin(115200); Serial.begin(115200);
Serial.println("Doing INS startup..."); Serial.println("Doing INS startup...");
Wire.begin();
SPI.begin(); SPI.begin();
SPI.setClockDivider(SPI_CLOCK_DIV16); // 1MHZ SPI rate SPI.setClockDivider(SPI_CLOCK_DIV16); // 1MHZ SPI rate