Skip to content

Commit 7befe71

Browse files
committed
Merge branch 'master' into iic_disk2_check
2 parents 889e47a + a82efd1 commit 7befe71

File tree

4 files changed

+1
-19
lines changed

4 files changed

+1
-19
lines changed

lib/bus/iwm/iwm.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,9 @@ void iwmDevice::iwm_return_badcmd(iwm_decoded_cmd_t cmd)
260260
case SP_ECMD_WRITEBLOCK:
261261
case SP_ECMD_CONTROL:
262262
case SP_ECMD_WRITE:
263-
case SP_ECMD_UNKNOWN1:
264-
case SP_ECMD_UNKNOWN2:
265263
case SP_CMD_WRITEBLOCK:
266264
case SP_CMD_CONTROL:
267265
case SP_CMD_WRITE:
268-
case SP_CMD_UNKNOWN1:
269-
case SP_CMD_UNKNOWN2:
270266
data_len = 512;
271267
IWM.iwm_decode_data_packet((uint8_t *)data_buffer, data_len);
272268
Debug_printf("\r\nUnit %02x Bad Command with data packet %02x\r\n", id(), cmd.command);
@@ -300,13 +296,9 @@ void iwmDevice::iwm_return_device_offline(iwm_decoded_cmd_t cmd)
300296
case SP_ECMD_WRITEBLOCK:
301297
case SP_ECMD_CONTROL:
302298
case SP_ECMD_WRITE:
303-
case SP_ECMD_UNKNOWN1:
304-
case SP_ECMD_UNKNOWN2:
305299
case SP_CMD_WRITEBLOCK:
306300
case SP_CMD_CONTROL:
307301
case SP_CMD_WRITE:
308-
case SP_CMD_UNKNOWN1:
309-
case SP_CMD_UNKNOWN2:
310302
data_len = 512;
311303
IWM.iwm_decode_data_packet((uint8_t *)data_buffer, data_len);
312304
Debug_printf("\r\nUnit %02x Offline, Command with data packet %02x\r\n", id(), cmd.command);

lib/bus/iwm/iwm.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ enum {
3232
SP_CMD_CLOSE = 0x07,
3333
SP_CMD_READ = 0x08,
3434
SP_CMD_WRITE = 0x09,
35-
SP_CMD_UNKNOWN1 = 0x0a,
36-
SP_CMD_UNKNOWN2 = 0x0b,
3735
SP_ECMD_STATUS = 0x40,
3836
SP_ECMD_READBLOCK = 0x41,
3937
SP_ECMD_WRITEBLOCK = 0x42,
@@ -44,8 +42,6 @@ enum {
4442
SP_ECMD_CLOSE = 0x47,
4543
SP_ECMD_READ = 0x48,
4644
SP_ECMD_WRITE = 0x49,
47-
SP_ECMD_UNKNOWN1 = 0x4a,
48-
SP_ECMD_UNKNOWN2 = 0x4b,
4945
};
5046

5147
// see page 81-82 in Apple IIc ROM reference and Table 7-5 in IIgs firmware ref

lib/bus/iwm/iwm_ll.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ void IRAM_ATTR phi_isr_handler(void *arg)
7575

7676
if ((c == SP_CMD_WRITEBLOCK) ||
7777
(c == SP_CMD_CONTROL) ||
78-
(c == SP_CMD_WRITE) ||
79-
(c == SP_CMD_UNKNOWN1) ||
80-
(c == SP_CMD_UNKNOWN2))
78+
(c == SP_CMD_WRITE))
8179
{
8280
// Debug_printf("\nhello from ISR - control command!");
8381
if (smartport.req_wait_for_falling_timeout(5500))

lib/bus/mac/mac.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -531,13 +531,9 @@ void iwmDevice::iwm_return_badcmd(iwm_decoded_cmd_t cmd)
531531
case SP_ECMD_WRITEBLOCK:
532532
case SP_ECMD_CONTROL:
533533
case SP_ECMD_WRITE:
534-
case SP_ECMD_UNKNOWN1:
535-
case SP_ECMD_UNKNOWN2:
536534
case SP_CMD_WRITEBLOCK:
537535
case SP_CMD_CONTROL:
538536
case SP_CMD_WRITE:
539-
case SP_CMD_UNKNOWN1:
540-
case SP_CMD_UNKNOWN2:
541537
data_len = 512;
542538
IWM.iwm_decode_data_packet((uint8_t *)data_buffer, data_len);
543539
Debug_printf("\r\nUnit %02x Bad Command with data packet %02x\r\n", id(), cmd.command);

0 commit comments

Comments
 (0)