rtlsdr_demod_write_reg(): return 0 on success

Thanks to DreamNik for reporting this issue.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
master
Steve Markgraf 12 years ago
parent 28ea914422
commit 1e67d2a9a3
  1. 2
      src/librtlsdr.c

@ -452,7 +452,7 @@ int rtlsdr_demod_write_reg(rtlsdr_dev_t *dev, uint8_t page, uint16_t addr, uint1
rtlsdr_demod_read_reg(dev, 0x0a, 0x01, 1); rtlsdr_demod_read_reg(dev, 0x0a, 0x01, 1);
return r; return (r == len) ? 0 : -1;
} }
void rtlsdr_set_gpio_bit(rtlsdr_dev_t *dev, uint8_t gpio, int val) void rtlsdr_set_gpio_bit(rtlsdr_dev_t *dev, uint8_t gpio, int val)

Loading…
Cancel
Save