Supachai Vorapojpisut
/
le484_2016
Course project for LE484 at Thammasat University, class of 2016
Diff: main.cpp
- Revision:
- 10:25704cab4585
- Parent:
- 7:d702abfe51e3
- Child:
- 12:845639da2f03
diff -r 5b4959a735a1 -r 25704cab4585 main.cpp --- a/main.cpp Mon May 08 04:45:50 2017 +0000 +++ b/main.cpp Mon May 08 04:52:03 2017 +0000 @@ -8,7 +8,7 @@ #include "platform.h" -Thread sensor; +Thread sensorThread; RawSerial pc(USBTX, USBRX); // use USB-serial for testing purpose @@ -29,7 +29,7 @@ */ int main() { pc.attach(rxHandler); - sensor.start(sensorIn); + sensorThread.start(sensorIn); while (true) { osEvent evt = mbx.get(); if (evt.status == osEventMail) {