Skip to content

Commit

Permalink
Merge pull request #33 from nippur72/master
Browse files Browse the repository at this point in the history
correct last channel ZCTO disable
  • Loading branch information
floooh authored May 14, 2020
2 parents e98c026 + 4faab21 commit 76736e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chips/z80ctc.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static inline uint64_t _z80ctc_counter_zero(z80ctc_t* ctc, z80ctc_channel_t* chn
chn->int_state |= Z80CTC_INT_NEEDED;
}
/* last channel doesn't have a ZCTO pin */
if (chn_id < 4) {
if (chn_id < 3) {
/* set the zcto pin */
pins |= Z80CTC_ZCTO0<<chn_id;
ctc->pins = pins;
Expand Down

0 comments on commit 76736e2

Please sign in to comment.