chipKIT32/pic32-Arduino-USB-Bootloader — Issue #4: Incomplete refactoring in avrbl_run
Author: JacobChrist
Created: 2011-12-04 16:18:08+00:00
State: open

At some point it looks like avrbl_run() in pic32bootloaderusb.c was re factored and a couple of vars were missed.

This code:

#ifndef PRGSWITCH
// if we've been here too long without stk500v2 becoming active...
if (loops >= AVRBL_LOOPS && !active)
{
// launch the application!
jump_to_app();
}
#endif

should read:

#ifndef PRGSWITCH
// if we've been here too long without stk500v2 becoming active...
if (gLoops >= AVRBL_LOOPS && !gActive)
{
// launch the application!
jump_to_app();
}
#endif