1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

tools/lib/: atnet now works (tried atrf-txrx send and receive, atrf-rssi)

- atrf-proxy/atrf-proxy.c (cmd_two): "SET" wrote the wrong value
- lib/atnet.c (atnet_buf_read): cleaned up the logic and fixed some
  small bugs
This commit is contained in:
Werner Almesberger
2011-04-11 10:40:44 -03:00
parent 803d40878e
commit 4246535456
2 changed files with 12 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ static int cmd_two(struct atrf_dsc *dsc, struct netio *netio, const char *cmd)
return ret;
if (val > 255)
return netio_printf(netio, "-bad argument\n");
atrf_reg_write(dsc, n, ret);
atrf_reg_write(dsc, n, val);
if (atrf_error(dsc))
return netio_printf(netio, "-I/O error\n");
return netio_printf(netio, "+\n");