Revision 138
More progress on charging... Sometimes the token ring drops out.
wl_token_ring.c | ||
---|---|---|
238 | 238 |
switch (type) |
239 | 239 |
{ |
240 | 240 |
case WL_TOKEN_PASS: |
241 |
usb_puts("received token pass from robot\n"); |
|
242 | 241 |
if (length < 1) |
243 | 242 |
{ |
244 | 243 |
WL_DEBUG_PRINT("Malformed Token Pass packet received.\r\n"); |
... | ... | |
247 | 246 |
wl_token_pass_receive(source, packet[0], packet + 1, length - 1); |
248 | 247 |
break; |
249 | 248 |
case WL_TOKEN_BOM_ON: |
250 |
usb_puts("received bom on from robot\n"); |
|
251 | 249 |
//add the robot to the sensor matrix if it is not already there |
252 | 250 |
wl_token_bom_on_receive(source); |
253 | 251 |
break; |
Also available in: Unified diff