![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ese519
Diff: main.cpp
- Revision:
- 6:652229327102
- Parent:
- 5:8e2b7caedd1d
- Child:
- 7:1ccdc92259f4
diff -r 8e2b7caedd1d -r 652229327102 main.cpp --- a/main.cpp Thu Oct 15 05:30:53 2015 +0000 +++ b/main.cpp Thu Oct 15 06:33:39 2015 +0000 @@ -86,7 +86,8 @@ motor2 = 1; DCenable = 0.8f; - while(floorat==0); + while(floorat==0) + pc.printf("floor: %d\r\n",floorat); short current_floor = floorat; pc.printf("at floor: %d\r\n",current_floor); @@ -113,6 +114,7 @@ } } pc.printf("at requested floor\r\n"); + DCenable = 0; open_door(); wait(5); close_door();