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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user