Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/17/2016 in Posts

  1. it was really simple: insert in a the function which is scanned every 2 seconds, which checks the SD Card: MUTEX_SDCARD_TAKE; //SD-Card is now only for the following LINES reserved: statusSD = FILE_CheckSDCard(); MUTEX_SDCARD_GIVE; if (statusSD == 1) {// YES CARD! MUTEX_SDCARD_TAKE; FILE_SendSyxDump( "/bcr1.syx", 32, 45); //Send(filepath, midiport, paket rate) MUTEX_SDCARD_GIVE; } or more readable without MUTEXes: statusSD = FILE_CheckSDCard(); //check if card is connected if (statusSD == 1) { //YES CARD is connecdte! FILE_SendSyxDump( "/bcr1.syx", 32, 45);} //Send(filepath, midiport, paket rate)
    1 point
×
×
  • Create New...