Semestrálna práca VÝTAH Roman Ciesarík

Dependencies:   MMA8451Q mbed

Revision:
11:a9918a8441a9
Parent:
10:346a5a5936b9
--- a/FreeFall.cpp	Mon Jan 08 15:00:34 2018 +0000
+++ b/FreeFall.cpp	Mon Jan 08 17:47:48 2018 +0000
@@ -19,7 +19,8 @@
     i2c.write(MMA8451_I2C_ADDRESS , t, 1, true);
     i2c.read(MMA8451_I2C_ADDRESS , (char *)&IntSourceSystem, 1);
 
-    if ((IntSourceSystem&0x04)==0x04) {
+    if ((IntSourceSystem&0x04)==0x04) 
+    {
          char DATA [] = {0x01};
          poslemSpravu(BRZDA, 0xcc, 0x01, DATA );
          freeFall_LED = 0;