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:
- 14:81d390496d4e
- Parent:
- 13:32e1ae4221f7
- Child:
- 15:f86310960aab
diff -r 32e1ae4221f7 -r 81d390496d4e main.cpp --- a/main.cpp Thu Aug 12 16:02:25 2021 +0000 +++ b/main.cpp Thu Aug 12 16:51:19 2021 +0000 @@ -152,8 +152,8 @@ double printDemandSpeed = demandSpeed_RPM; double printCurrentSpeed = currentSpeedRPM; //mut1.unlock(); - //printf("%f\t%f\r\n", currentSpeedRPM,_MagFil); - printf("%f\t%f\r\n", printDemandSpeed,printCurrentSpeed); + printf("%f\t%f\r\n", currentSpeedRPM,_MagFil); + //printf("%f\t%f\r\n", printDemandSpeed,printCurrentSpeed); //printf("%f\r\n",_MagFil); } if(state == STATE_ERROR){ @@ -166,7 +166,7 @@ double printCurrentSpeed = currentSpeedRPM; //mut1.unlock(); //printf("%f\t%f\r\n", currentSpeedRPM,_MagFil); - printf("%f\t%f\r\n", printDemandSpeed,printCurrentSpeed); + //printf("%f\t%f\r\n", printDemandSpeed,printCurrentSpeed); //printf("%f\r\n",_MagFil); } } @@ -374,7 +374,9 @@ int count = 0; int blinkCount = 0; - pinLedRed = 0; + if(state == STATE_READY){ + pinLedRed = 0; + } while(pinButton.read()) { count++;