mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
libatrf: simplify use of atrf_interrupt_wait now this it is mandatory
- lib/atrf.c (atrf_interrupt_wait): interrupt_wait is no longer optional - atrf-proxy/atrf-proxy.c (cmd_more): we no longer need to handle atrf_interrupt_wait being unsupported - lib/atusb-common.c (atusb_interrupt_wait): clarify what we don't want to return -1 on error
This commit is contained in:
@@ -176,8 +176,6 @@ static int cmd_more(struct atrf_dsc *dsc, struct netio *netio, const char *cmd)
|
||||
res = atrf_interrupt_wait(dsc, n);
|
||||
if (atrf_error(dsc))
|
||||
return netio_printf(netio, "-I/O error\n");
|
||||
if (res < 0)
|
||||
return netio_printf(netio, "-not supported\n");
|
||||
return netio_printf(netio, "+0x%02x\n", res);
|
||||
}
|
||||
if (!strcasecmp(cmd, "getram")) {
|
||||
|
||||
Reference in New Issue
Block a user