Smart Car Seat GT Design Expo Spring 2017 / Mbed 2 deprecated Smart_Car_Seat_v1

Dependencies:   Adafruit_FONA FSR SDFileSystem mbed

Fork of Smart_Car_Seat_v1 by Jea Du Kim

Files at this revision

API Documentation at this revision

Comitter:
jd0205
Date:
Wed May 03 23:03:22 2017 +0000
Parent:
0:5a4b2c91de63
Commit message:
v1.1

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 5a4b2c91de63 -r a33e55fecf16 main.cpp
--- a/main.cpp	Wed May 03 21:14:11 2017 +0000
+++ b/main.cpp	Wed May 03 23:03:22 2017 +0000
@@ -129,6 +129,7 @@
             }
             if (danger) {       //When child is in "danger"
                 fona.sendSMS(pnum, message);    //FONA will send message to the contact
+                wait(1);        //Adjust wait time after sending a message
             }
         } else {
             led3 = 0;
@@ -136,7 +137,7 @@
             CtrlRelay = 0;      //When child is no longer on the seat
             danger = false;     //The system resets
         }
-        wait(1);
+        wait(1);        //Adjust wait time after reading
     }
 }