![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
app4
Dependencies: mbed-rtos mbed CRC16
Fork of S5info_APP2 by
Diff: main.cpp
- Revision:
- 10:8b066285c2e0
- Parent:
- 8:5b87b1f9d91f
- Child:
- 11:b27d1a83f688
--- a/main.cpp Mon Mar 06 22:46:10 2017 +0000 +++ b/main.cpp Mon Mar 06 22:49:58 2017 +0000 @@ -7,7 +7,6 @@ Serial pc(USBTX, USBRX, 9600); Serial uart(p13, p14, 9600); -DigitalOut myled1(LED1); Thread ThreadLecture; bool bIsHalfPeriod = false; @@ -16,7 +15,6 @@ //clear flag LPC_RIT->RICTRL |= bit0; //write 1 to clear bit - myled1 = !myled1; bIsHalfPeriod = !bIsHalfPeriod; } @@ -38,7 +36,7 @@ ThreadLecture.signal_wait(1); // Lis le message. Retourne une exception si il y a une erreur - vector<char> message = uart_read(uart, pc); + vector<char> message = uart_read(uart); if (!message.empty()) {