Skip to content

Commit 7d5ac50

Browse files
FozzTexxmarkjfisher
authored andcommitted
No Disk II write support on PC.
1 parent a82efd1 commit 7d5ac50

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/bus/iwm/iwm.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,9 @@ void IRAM_ATTR iwmBus::service()
436436
if (!serviceSmartPort())
437437
serviceDiskII();
438438

439+
#ifndef DEV_RELAY_SLIP
439440
serviceDiskIIWrite();
441+
#endif
440442
}
441443

442444
// Returns true if SmartPort was handled
@@ -598,6 +600,7 @@ bool IRAM_ATTR iwmBus::serviceDiskII()
598600
return true;
599601
}
600602

603+
#ifndef DEV_RELAY_SLIP
601604
// Returns true if a Disk II write was received
602605
bool IRAM_ATTR iwmBus::serviceDiskIIWrite()
603606
{
@@ -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)