Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Adafruit_FONA FSR SDFileSystem mbed
Fork of Smart_Car_Seat_v1 by
Revision 1:a33e55fecf16, committed 2017-05-03
- 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
     }
 }
 
    