Skip to content

Commit 2c0e339

Browse files
committed
No Disk II support on PC.
1 parent 7d5ac50 commit 2c0e339

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/bus/iwm/iwm.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,13 @@ 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

439-
#ifndef DEV_RELAY_SLIP
440440
serviceDiskIIWrite();
441+
#else
442+
serviceSmartPort();
441443
#endif
442444
}
443445

@@ -548,10 +550,10 @@ bool IRAM_ATTR iwmBus::serviceSmartPort()
548550
return true;
549551
}
550552

553+
#ifndef DEV_RELAY_SLIP
551554
// Returns true if Disk II was handled
552555
bool IRAM_ATTR iwmBus::serviceDiskII()
553556
{
554-
#ifndef DEV_RELAY_SLIP
555557
// check on the diskii status
556558
switch (iwm_drive_enabled())
557559
{
@@ -595,12 +597,10 @@ bool IRAM_ATTR iwmBus::serviceDiskII()
595597
iwm_ack_deassert();
596598
break;
597599
}
598-
#endif /* !SLIP */
599600

600601
return true;
601602
}
602603

603-
#ifndef DEV_RELAY_SLIP
604604
// Returns true if a Disk II write was received
605605
bool IRAM_ATTR iwmBus::serviceDiskIIWrite()
606606
{

0 commit comments

Comments
 (0)