File tree 1 file changed +3
-1
lines changed
mtk/avr/bootloaders/caterina
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,11 @@ uint16_t RxLEDPulse = 0; // time remaining for Rx LED pulse
70
70
#if F_CPU == 8000000
71
71
#define TIMEOUT_PERIOD 4000
72
72
#define EXT_RESET_TIMEOUT_PERIOD 375
73
+ #define RESPONSE_TIMEOUT_PERIOD 250
73
74
#else
74
75
#define TIMEOUT_PERIOD 8000
75
76
#define EXT_RESET_TIMEOUT_PERIOD 750
77
+ #define RESPONSE_TIMEOUT_PERIOD 500
76
78
#endif
77
79
78
80
// MAH 8/15/12- make this volatile, since we modify it in one place and read it in another, we want to make
@@ -588,7 +590,7 @@ void CDC_Task(void)
588
590
* leaving just a few hundred milliseconds so the
589
591
* bootloder has time to respond and service any
590
592
* subsequent requests */
591
- Timeout = TIMEOUT_PERIOD - 500 ;
593
+ Timeout = TIMEOUT_PERIOD - RESPONSE_TIMEOUT_PERIOD ;
592
594
593
595
/* Re-enable RWW section - must be done here in case
594
596
* user has disabled verification on upload. */
You can’t perform that action at this time.
0 commit comments