Эх сурвалжийг харах

Fix typo on audio include guards.

saybur 2 жил өмнө
parent
commit
583db56e3c

+ 3 - 3
src/ZuluSCSI_cdrom.cpp

@@ -929,7 +929,7 @@ void cdromGetAudioPlaybackStatus(uint8_t *status, uint32_t *current_lba, bool cu
     }
     }
     if (current_lba) *current_lba = mechanism_status[target].last_lba
     if (current_lba) *current_lba = mechanism_status[target].last_lba
             + audio_get_bytes_read(target) / 2352;
             + audio_get_bytes_read(target) / 2352;
-#elif
+#else
     if (status) *status = 0; // audio status code for 'unsupported/invalid' and not-playing indicator
     if (status) *status = 0; // audio status code for 'unsupported/invalid' and not-playing indicator
     if (current_lba) *current_lba = mechanism_status[target].last_lba;
     if (current_lba) *current_lba = mechanism_status[target].last_lba;
 #endif
 #endif
@@ -1023,7 +1023,7 @@ static void doPlayAudio(uint32_t lba, uint32_t length)
         scsiDev.target->sense.asc = 0x6400; // ILLEGAL MODE FOR THIS TRACK
         scsiDev.target->sense.asc = 0x6400; // ILLEGAL MODE FOR THIS TRACK
         scsiDev.phase = STATUS;
         scsiDev.phase = STATUS;
     }
     }
-#elif
+#else
     dbgmsg("---- Target does not support audio playback");
     dbgmsg("---- Target does not support audio playback");
     // per SCSI-2, targets not supporting audio respond to zero-length
     // per SCSI-2, targets not supporting audio respond to zero-length
     // PLAY AUDIO commands with ILLEGAL REQUEST; this seems to be a check
     // PLAY AUDIO commands with ILLEGAL REQUEST; this seems to be a check
@@ -1055,7 +1055,7 @@ static void doPauseResumeAudio(bool resume)
         scsiDev.target->sense.asc = 0x2C00; // COMMAND SEQUENCE ERROR
         scsiDev.target->sense.asc = 0x2C00; // COMMAND SEQUENCE ERROR
         scsiDev.phase = STATUS;
         scsiDev.phase = STATUS;
     }
     }
-#elif
+#else
     dbgmsg("---- Target does not support audio pausing");
     dbgmsg("---- Target does not support audio pausing");
     scsiDev.status = CHECK_CONDITION;
     scsiDev.status = CHECK_CONDITION;
     scsiDev.target->sense.code = ILLEGAL_REQUEST; // assumed from PLAY AUDIO(10)
     scsiDev.target->sense.code = ILLEGAL_REQUEST; // assumed from PLAY AUDIO(10)