From 6335b376684f5d6045694acf00c373856d44bac9 Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Thu, 5 Apr 2012 01:09:50 +0200 Subject: [PATCH] fix rtlsdr_demod_read_reg() Signed-off-by: Steve Markgraf --- src/rtl-sdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtl-sdr.c b/src/rtl-sdr.c index 0d050ee..55ccc0b 100644 --- a/src/rtl-sdr.c +++ b/src/rtl-sdr.c @@ -291,7 +291,7 @@ void rtlsdr_write_reg(rtlsdr_dev_t *dev, uint8_t block, uint16_t addr, uint16_t fprintf(stderr, "%s failed\n", __FUNCTION__); } -uint16_t rtlsdr_demod_read_reg(rtlsdr_dev_t *dev, uint8_t page, uint8_t addr, uint8_t len) +uint16_t rtlsdr_demod_read_reg(rtlsdr_dev_t *dev, uint8_t page, uint16_t addr, uint8_t len) { int r; unsigned char data[2];