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:
@@ -320,6 +320,5 @@ uint8_t atrf_sram_read(struct atrf_dsc *dsc, uint8_t addr)
|
||||
|
||||
int atrf_interrupt_wait(struct atrf_dsc *dsc, int timeout_ms)
|
||||
{
|
||||
return dsc->driver->interrupt_wait ?
|
||||
dsc->driver->interrupt_wait(dsc->handle, timeout_ms) : -1;
|
||||
return dsc->driver->interrupt_wait(dsc->handle, timeout_ms);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user