Skip to content

Commit dca98fb

Browse files
committed
No Disk II support on PC.
1 parent a82efd1 commit dca98fb

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lib/bus/iwm/iwm.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,14 @@ std::vector<uint8_t> iwmDevice::create_dib_reply_packet(const std::string& devic
433433
void IRAM_ATTR iwmBus::service()
434434
{
435435
// process smartport before diskII
436+
#ifndef DEV_RELAY_SLIP
436437
if (!serviceSmartPort())
437438
serviceDiskII();
438439

439440
serviceDiskIIWrite();
441+
#else
442+
serviceSmartPort();
443+
#endif
440444
}
441445

442446
// Returns true if SmartPort was handled
@@ -546,10 +550,10 @@ bool IRAM_ATTR iwmBus::serviceSmartPort()
546550
return true;
547551
}
548552

553+
#ifndef DEV_RELAY_SLIP
549554
// Returns true if Disk II was handled
550555
bool IRAM_ATTR iwmBus::serviceDiskII()
551556
{
552-
#ifndef DEV_RELAY_SLIP
553557
// check on the diskii status
554558
switch (iwm_drive_enabled())
555559
{
@@ -593,7 +597,6 @@ bool IRAM_ATTR iwmBus::serviceDiskII()
593597
iwm_ack_deassert();
594598
break;
595599
}
596-
#endif /* !SLIP */
597600

598601
return true;
599602
}
@@ -685,7 +688,6 @@ bool IRAM_ATTR iwmBus::serviceDiskIIWrite()
685688
return true;
686689
}
687690

688-
#ifndef DEV_RELAY_SLIP
689691
iwm_enable_state_t IRAM_ATTR iwmBus::iwm_drive_enabled()
690692
{
691693
uint8_t phases = smartport.iwm_phase_vector();

lib/bus/iwm/iwm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,9 @@ class iwmBus
333333
void service();
334334
bool serviceSmartPort();
335335
bool serviceDiskII();
336+
#ifndef DEV_RELAY_SLIP
336337
bool serviceDiskIIWrite();
338+
#endif
337339
void shutdown();
338340

339341
int numDevices();

0 commit comments

Comments
 (0)