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.
Diff: main.cpp
- Revision:
- 9:9ff8ceda23ac
- Parent:
- 8:cf01437054e6
- Child:
- 10:bdd6069f1345
diff -r cf01437054e6 -r 9ff8ceda23ac main.cpp
--- a/main.cpp Sun Jul 11 17:15:58 2021 +0000
+++ b/main.cpp Mon Jul 12 07:24:48 2021 +0000
@@ -121,7 +121,6 @@
}
//direction control function
void displayState2(){
- printf("direction %d \n",direction);
if(direction==0){
i=0;
bed=1;
@@ -207,7 +206,6 @@
void countDuration(){
time(&stopTime);
pushDuration=stopTime-startTime;
- printf("elapsed time is:%d \n",pushDuration);
if(pushDuration>5){
display("System resetting......\n");
durationTime.detach();
@@ -217,7 +215,6 @@
}
else if(pushDuration>=3 && state==0 ){
state =1;
- printf("direction changed %d \n",direction);
direction=!direction;
displayState2();
}