Fixed error in the AVRISP-MKII programmer when ISP mode is used at 64KHz (thanks to Ben R. Porter).

pull/1469/head
Dean Camera 13 years ago
parent 01d5af3d6c
commit e58915344d

@ -29,7 +29,7 @@
* - Fixed compile error for the UC3 architecture when INTERRUPT_CONTROL_ENDPOINT is specified (thanks to Andrus Aaslaid) * - Fixed compile error for the UC3 architecture when INTERRUPT_CONTROL_ENDPOINT is specified (thanks to Andrus Aaslaid)
* - Fixed compile error if LEDs_Disable() is called and BOARD=NONE is set (thanks to Sam Lin) * - Fixed compile error if LEDs_Disable() is called and BOARD=NONE is set (thanks to Sam Lin)
* - Library Applications: * - Library Applications:
* - None * - Fixed error in the AVRISP-MKII programmer when ISP mode is used at 64KHz (thanks to Ben R. Porter)
* *
* \section Sec_ChangeLog120219 Version 120219 * \section Sec_ChangeLog120219 Version 120219
* <b>New:</b> * <b>New:</b>

@ -129,8 +129,11 @@ ISR(TIMER1_COMPA_vect, ISR_BLOCK)
{ {
SoftSPI_Data <<= 1; SoftSPI_Data <<= 1;
if (!(SoftSPI_BitsRemaining--)) if (!(--SoftSPI_BitsRemaining))
TCCR1B = 0; {
TCCR1B = 0;
TIFR1 = (1 << OCF1A);
}
if (PINB & (1 << 3)) if (PINB & (1 << 3))
SoftSPI_Data |= (1 << 0); SoftSPI_Data |= (1 << 0);

Loading…
Cancel
Save