Revision 174
| trunk/toolbox/bootloader/bootloader.c (revision 174) | ||
|---|---|---|
| 220 | 220 |
uint8_t i; |
| 221 | 221 |
uint8_t retries; |
| 222 | 222 |
|
| 223 |
retry_jpnt: |
|
| 223 | 224 |
iteration = 0; |
| 224 | 225 |
retries = 0; |
| 225 | 226 |
|
| ... | ... | |
| 285 | 286 |
send_packet(TT_NACK); |
| 286 | 287 |
retries++; |
| 287 | 288 |
|
| 288 |
// If we failed too many times, reset. The main_start should |
|
| 289 |
// no-op back to the start of the bootloader |
|
| 289 |
// If we failed too many times, reset. This goes to the start |
|
| 290 |
// of the bootloader function |
|
| 290 | 291 |
if (retries > MAX_RETRIES) {
|
| 291 |
main_start(); |
|
| 292 |
goto retry_jpnt; |
|
| 292 | 293 |
} |
| 293 | 294 |
} |
| 294 | 295 |
|
Also available in: Unified diff