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:
- 1:184cb0870c04
- Parent:
- 0:de4320f74764
- Child:
- 2:4e88faab6988
--- a/main.cpp	Fri Feb 17 22:47:01 2017 +0000
+++ b/main.cpp	Mon Feb 27 10:25:06 2017 +0000
@@ -93,7 +93,6 @@
 //Main
 int main() {
     //Initialise the serial port
-    serialThread.start(&serialOut);
     Serial pc(SERIAL_TX, SERIAL_RX);
     pc.printf("Hello\n\r");
     
@@ -101,7 +100,7 @@
     motorHome();
     
     //Poll the rotor state and set the motor outputs accordingly to spin the motor
-    while {1} {
+    while (1) {
         motorOut(readRotorState()+leadState);
         }
 }