mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-05-03 22:09:10 +00:00
Fixed error in the AVRISP-MKII programmer when ISP mode is used at 64KHz (thanks to Ben R. Porter).
This commit is contained in:
@@ -129,9 +129,12 @@ ISR(TIMER1_COMPA_vect, ISR_BLOCK)
|
||||
{
|
||||
SoftSPI_Data <<= 1;
|
||||
|
||||
if (!(SoftSPI_BitsRemaining--))
|
||||
TCCR1B = 0;
|
||||
|
||||
if (!(--SoftSPI_BitsRemaining))
|
||||
{
|
||||
TCCR1B = 0;
|
||||
TIFR1 = (1 << OCF1A);
|
||||
}
|
||||
|
||||
if (PINB & (1 << 3))
|
||||
SoftSPI_Data |= (1 << 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user