File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -433,10 +433,14 @@ std::vector<uint8_t> iwmDevice::create_dib_reply_packet(const std::string& devic
433433void 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
550555bool 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
689691iwm_enable_state_t IRAM_ATTR iwmBus::iwm_drive_enabled ()
690692{
691693 uint8_t phases = smartport.iwm_phase_vector ();
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments