Skip to content

Commit

Permalink
fixed compile problem when not using IEC
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Oliver Moll committed Nov 10, 2023
1 parent 7bc7afc commit 8680699
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/doscmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1190,9 +1190,11 @@ static void handle_memexec(void) {
datacrc = crc16_update(datacrc, command_buffer[i]);

switch (datacrc) {
#ifdef CONFIG_HAVE_IEC
case 0x597c: /* C128 DevMan 1581 mute code */
iec_sleep();
break;
#endif
default:
/* unknown M-E call */
set_error_ts(ERROR_UNKNOWN_DRIVEEXEC, datacrc >> 8, datacrc & 0xff);
Expand Down Expand Up @@ -2249,10 +2251,12 @@ void parse_doscommand(void) {
parse_getpartition();
break;

#ifdef CONFIG_HAVE_IEC
case 'H':
/* Hide */
iec_sleep();
break;
#endif

case 'I':
/* Initialize */
Expand Down

0 comments on commit 8680699

Please sign in to comment.