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:
- 2:da51e13f4ddf
- Parent:
- 1:6e3f1776be82
- Child:
- 3:4f215646a42b
--- a/main.cpp Sun Aug 08 12:28:05 2021 +0000 +++ b/main.cpp Sun Aug 08 12:29:22 2021 +0000 @@ -77,7 +77,7 @@ Semaphore semStartTest(0); Semaphore semButton(0); -Mutex mut1; +//Mutex mut1; double LimitDouble(double input, double min, double max){ double output; @@ -132,10 +132,10 @@ double timeRemaining = SPIN_T[5] - timeElapsed; int displayTime = int(timeRemaining)+1; //printf("Time remaining %d s\r\n", displayTime); - mut1.lock(); - double printDemandSpeed = demandSpeed_RPM; - double printCurrentSpeed = currentSpeedRPM; - mut1.unlock();//this is the first change +// mut1.lock(); +// double printDemandSpeed = demandSpeed_RPM; +// double printCurrentSpeed = currentSpeedRPM; +// mut1.unlock();//this is the first change printf("%f\t%f\r\n",demandSpeed_RPM, currentSpeedRPM); } }