Skip to content

Commit

Permalink
SRQ needed to be inverted.
Browse files Browse the repository at this point in the history
  • Loading branch information
pi1541 committed Nov 4, 2018
1 parent a26a427 commit d9528f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/iec_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void IEC_Bus::ReadEmulationMode1581(void)
}
else
{
PI_SRQ = false;
PI_SRQ = true;
}

Resetting = !ignoreReset && ((gplev0 & PIGPIO_MASK_IN_RESET) == (invertIECInputs ? PIGPIO_MASK_IN_RESET : 0));
Expand Down
2 changes: 1 addition & 1 deletion src/iec_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ class IEC_Bus
if (ClockSetToOut) set |= 1 << PIGPIO_OUT_CLOCK;
else clear |= 1 << PIGPIO_OUT_CLOCK;

if (!SRQSetToOut) set |= 1 << PIGPIO_OUT_SRQ; // fast clock is pulled high but we have an inverter in our hardware so to compensate we invert in software now
if (SRQSetToOut) set |= 1 << PIGPIO_OUT_SRQ; // fast clock is pulled high but we have an inverter in our hardware so to compensate we invert in software now
else clear |= 1 << PIGPIO_OUT_SRQ;

if (!invertIECOutputs) {
Expand Down

0 comments on commit d9528f0

Please sign in to comment.