Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Revision:
46:fd5a62296b12
Parent:
33:bd56fc8aeb0a
--- a/PowerAwareI2C.h	Wed May 27 11:45:00 2015 +0000
+++ b/PowerAwareI2C.h	Wed May 27 13:01:43 2015 +0000
@@ -9,16 +9,14 @@
 {
 public:
     PowerAwareI2C(PinName sda, PinName scl) : I2C(sda, scl) {}
-    
+
     /// Power on the I2C peripheral
-    void powerOn()
-    {
+    void powerOn() {
         _i2c.i2c->ENABLE = (TWI_ENABLE_ENABLE_Enabled << TWI_ENABLE_ENABLE_Pos);
     }
-    
-    /// Power off the I2C peripheral     
-    void powerOff()
-    {
+
+    /// Power off the I2C peripheral
+    void powerOff() {
         _i2c.i2c->ENABLE = TWI_ENABLE_ENABLE_Disabled << TWI_ENABLE_ENABLE_Pos;
         _i2c.i2c->POWER  = 0;
     }