Revision 138
More progress on charging... Sometimes the token ring drops out.
wireless.c | ||
---|---|---|
84 | 84 |
timer_val.it_interval = interval; |
85 | 85 |
timer_val.it_value = first_time; |
86 | 86 |
if(setitimer(ITIMER_REAL,&timer_val,NULL)==-1) |
87 |
{
|
|
87 |
{ |
|
88 | 88 |
WL_DEBUG_PRINT("Error creating a timer.\r\n"); |
89 | 89 |
perror("Failure's cause"); |
90 | 90 |
exit(1); |
... | ... | |
105 | 105 |
**/ |
106 | 106 |
void wl_terminate() |
107 | 107 |
{ |
108 |
#ifndef ROBOT |
|
109 |
#ifdef _POSIX_TIMERS |
|
110 |
timer_delete(wl_timeout_timer); |
|
111 |
#endif |
|
112 |
#endif |
|
113 |
|
|
114 | 108 |
int i; |
115 | 109 |
for (i = 0; i < WL_MAX_PACKET_GROUPS; i++) |
116 | 110 |
if (wl_packet_groups[i] != NULL && |
... | ... | |
354 | 348 |
{ |
355 | 349 |
WL_DEBUG_PRINT("No response received.\r\n"); |
356 | 350 |
if (wl_buf[2] == 2) |
351 |
{ |
|
357 | 352 |
WL_DEBUG_PRINT("CCA Failure\r\n"); |
353 |
} |
|
358 | 354 |
if (wl_buf[2] == 3) |
355 |
{ |
|
359 | 356 |
WL_DEBUG_PRINT("Purged\r\n"); |
357 |
} |
|
360 | 358 |
} |
361 | 359 |
|
362 | 360 |
if (wl_packet_groups[group] != NULL && |
Also available in: Unified diff