Code for automatic pill box dispenser

Dependencies:   mbed-rtos mbed sMotor

Files at this revision

API Documentation at this revision

Comitter:
cchoi63
Date:
Wed Dec 13 04:43:36 2017 +0000
Parent:
0:d223f8829ec0
Commit message:
removed commented code, changed bracket style

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Dec 13 04:28:37 2017 +0000
+++ b/main.cpp	Wed Dec 13 04:43:36 2017 +0000
@@ -75,8 +75,7 @@
 
 void SendCmdTime() {
     //Send a command through Serial telling the mySQL database to update the
-    //time
-    //pc.printf("cmdTime\n");  
+    //time 
     cmd_type = 1;
     cmd_send = true;
 }
@@ -84,13 +83,11 @@
 void SendCmdPill() {
     // Send a command through Serial telling the mySQL database to update the
     // pill status
-    //pc.printf("cmdPill\n");
     cmd_type = 2;
     cmd_send = true;
 }
 
-void ControlCmd()
-{
+void ControlCmd() {
     while (true) {
         if (cmd_send) {
             switch (cmd_type) {