Skip to content

Commit

Permalink
example update
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotak committed Oct 21, 2019
1 parent aac797e commit 2b014bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ void data(int len) { // ISR
}

int main() {
ThisThread::sleep_for(200);
Thread eQueueThread(osPriorityAboveNormal1);
Thread eQueueThread;

if (eQueueThread.start(callback(&eQueue, &EventQueue::dispatch_forever)) != osOK) {
printf("eQueueThread error\n");
Expand Down Expand Up @@ -138,8 +137,7 @@ void data(int len) { // ISR
}
int main() {
ThisThread::sleep_for(200);
Thread eQueueThread(osPriorityAboveNormal1);
Thread eQueueThread;
if (eQueueThread.start(callback(&eQueue, &EventQueue::dispatch_forever)) != osOK) {
printf("eQueueThread error\n");
Expand Down

0 comments on commit 2b014bf

Please sign in to comment.