Skip to content
Snippets Groups Projects
Commit 42ef3b2f authored by deuce's avatar deuce
Browse files

Use the new listSemTryWaitBlock() semantics.

parent 15cbd17e
Branches
Tags
No related merge requests found
...@@ -190,7 +190,7 @@ void playnote_thread(void *args) ...@@ -190,7 +190,7 @@ void playnote_thread(void *args)
playnote_thread_running=TRUE; playnote_thread_running=TRUE;
while(1) { while(1) {
if(device_open) { if(device_open) {
if(listSemTryWaitBlock(&notes,5000)) { if(!listSemTryWaitBlock(&notes,5000)) {
xptone_close(); xptone_close();
device_open=FALSE; device_open=FALSE;
listSemWait(&notes); listSemWait(&notes);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment