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

Fix bug in calling xptone_close()... actually closes it now. :-)

parent 8a013ccd
Branches
Tags
No related merge requests found
...@@ -192,12 +192,14 @@ void playnote_thread(void *args) ...@@ -192,12 +192,14 @@ void playnote_thread(void *args)
if(device_open) { if(device_open) {
if(!listSemTryWait(&notes)) { if(!listSemTryWait(&notes)) {
xptone_close(); xptone_close();
device_open=FALSE;
listSemWait(&notes); listSemWait(&notes);
} }
} }
else else
listSemWait(&notes); listSemWait(&notes);
xptone_open(); xptone_open();
device_open=TRUE;
note=listShiftNode(&notes); note=listShiftNode(&notes);
if(note==NULL) if(note==NULL)
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment