Revision 418
added return values to a bunch of libwireless functions. Makefile for colonetserver now compiles libwireless when necessary. added static to a bunch of libwireless vars. commented out colonet timeout
Command.cpp | ||
---|---|---|
174 | 174 |
int_tokens[0], int_tokens[1], int_tokens[2]); |
175 | 175 |
if (colonet_wl_send((short)pool_index, int_tokens[0], (ColonetMessageType)int_tokens[1], int_tokens[2], arguments) |
176 | 176 |
!= 0) { |
177 |
fprintf(stderr, "Error - Colonet_wl_send failed."); |
|
178 |
return -1;
|
|
177 |
fprintf(stderr, "Error - Colonet_wl_send failed.\n");
|
|
178 |
exit(1);
|
|
179 | 179 |
} |
180 | 180 |
|
181 | 181 |
return 0; |
... | ... | |
266 | 266 |
int num_robots; |
267 | 267 |
int* xbee_ids = colonet_get_xbee_ids(&num_robots); |
268 | 268 |
|
269 |
|
|
270 |
|
|
271 |
printf("num_robots: %d\n", num_robots); |
|
272 |
printf("xbee_ids: "); |
|
273 |
for (int i = 0; i < num_robots; i++) { |
|
274 |
printf("%d ", xbee_ids[i]); |
|
275 |
} |
|
276 |
printf("\n"); |
|
277 |
|
|
278 |
|
|
279 |
|
|
269 | 280 |
if (!connection_pool) { |
270 | 281 |
return -1; |
271 | 282 |
} |
Also available in: Unified diff