Revision 166
Recharging now works, wireless has been updated.
wireless.c | ||
---|---|---|
50 | 50 |
} |
51 | 51 |
return; |
52 | 52 |
} |
53 |
#else |
|
54 |
|
|
55 |
//called when the timer ticks |
|
56 |
void timer_handler(void) |
|
57 |
{ |
|
58 |
wl_timeout = 1; |
|
59 |
} |
|
60 |
|
|
53 | 61 |
#endif |
54 | 62 |
|
55 | 63 |
/** |
... | ... | |
67 | 75 |
//begin timeout timer |
68 | 76 |
#ifdef ROBOT |
69 | 77 |
#ifdef FIREFLY |
70 |
rtc_init(PRESCALE_DIV_128, 32, &wl_do_timeout);
|
|
78 |
rtc_init(PRESCALE_DIV_256, 32, &timer_handler);
|
|
71 | 79 |
#else |
72 |
rtc_init(HALF_SECOND, &wl_do_timeout);
|
|
80 |
rtc_init(HALF_SECOND, &timer_handler);
|
|
73 | 81 |
#endif |
74 | 82 |
#else |
75 | 83 |
|
Also available in: Unified diff