Revision 323
Removed debugging statements.
trunk/code/projects/libwireless/lib/xbee.c | ||
---|---|---|
181 | 181 |
#endif |
182 | 182 |
sei(); |
183 | 183 |
#else |
184 |
printf("Connecting to port %s.\n", xbee_com_port); |
|
184 | 185 |
xbee_stream = open(xbee_com_port, O_RDWR); |
185 | 186 |
if (xbee_stream == -1/* || lockf(xbee_stream, F_TEST, 0) != 0*/) |
186 | 187 |
{ |
... | ... | |
231 | 232 |
|
232 | 233 |
#endif |
233 | 234 |
xbee_enter_command_mode(); |
234 |
printf("Entered command mode.\n"); |
|
235 | 235 |
xbee_enter_api_mode(); |
236 |
printf("Entered API mode.\n"); |
|
237 | 236 |
xbee_exit_command_mode(); |
238 |
printf("Exited command mode.\n"); |
|
239 | 237 |
xbee_send_read_at_command("MY"); |
240 |
printf("Requested MY id.\n"); |
|
241 | 238 |
|
242 | 239 |
//wait to return until the address is set |
243 | 240 |
while (xbee_address == 0) xbee_get_packet(NULL); |
244 | 241 |
|
245 |
printf("Returning from xbee_lib_init.\n"); |
|
246 | 242 |
|
247 | 243 |
return 0; |
248 | 244 |
} |
... | ... | |
373 | 369 |
if (queue_is_empty(xbee_queue)) |
374 | 370 |
continue; |
375 | 371 |
char c = (char)(int)queue_remove(xbee_queue); |
376 |
if (c == '\n') |
|
377 |
printf("\\r"); |
|
378 | 372 |
if (c == *curr) |
379 | 373 |
curr++; |
380 | 374 |
else |
trunk/code/projects/libwireless/lib/wireless.c | ||
---|---|---|
104 | 104 |
for (i = 0; i < WL_MAX_PACKET_GROUPS; i++) |
105 | 105 |
wl_packet_groups[i] = NULL; |
106 | 106 |
|
107 |
printf("calling xbee_lib_init\n"); |
|
108 | 107 |
if (xbee_lib_init() == -1) { |
109 | 108 |
return -1; |
110 | 109 |
} |
111 |
printf("xbee_lib_init finished\n"); |
|
112 | 110 |
|
113 | 111 |
//begin timeout timer |
114 | 112 |
#ifdef ROBOT |
Also available in: Unified diff