 
 // file to hold the last played album (aka directory) name - from here we may retrieve other data from the trackDb 
 #ifdef RESUMELAST
-  const char lastPlayedSessionFile[] = "/trackdb0/LASTPLAY.TDB";
+  const char resumeLastFile[] = "/trackdb0/LASTPLAY.TDB";
 #endif
 
 

#ifdef NFCTRACKDB
static void setTrackDbEntry() {
  char tmpbuf[4];                                 // temp buffer for one number of the uid
  memset(trackDbEntry, 0, sizeof(trackDbEntry));
    
  // create the entry for the  "Tag UID <-> directory + track number"  connection
  memset(trackDbEntry, 0, sizeof(trackDbEntry));

      break;  // try the filename - we break the for loop and skip to next number
    }
    
    // make sure we remember the just started track to be the new track, in case player is stopped 
    // this works only with the NFC TrackDb and not with the NFC NDEF implementation
    #ifdef NFCTRACKDB
      if (curTrack != firstTrackToPlay) {
        // in case we are on the last track, choose the first track, so we start playback all from the beginning.
        if (curTrack == numberOfFiles) firstTrackToPlay = 1; else firstTrackToPlay = curTrack;
        
        // now store this new first track in the TrackDB
        // first create the new trackDb entry:
        setTrackDbEntry();
        // second store this entry in the TrackDb files, plus optional in the albumnfc.tdb file
        if (!writeTrackDbEntry()) {
          issueWarning("trackdb update error", "", false);
        }
      }
    #endif
    
    // play the track on the music maker shield and retrieve the nextTrackToPlay from global variable (it is set by playTrack())
    //        -1  errors trying to play the file (like file not found)
    //         0  success - the file was played
