summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--software/rda1846dongle/rda1846.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/software/rda1846dongle/rda1846.c b/software/rda1846dongle/rda1846.c
index eaa0fbc..e6807f3 100644
--- a/software/rda1846dongle/rda1846.c
+++ b/software/rda1846dongle/rda1846.c
@@ -108,7 +108,7 @@ uint8_t rda1846_read_register(const uint8_t addr, uint16_t* data)
uint8_t ret = rda1846_write_register_raw(RDA1846_ADDR_LIMIT, 1);
if(ret) return ret;
- ret = rda1846_read_register_raw(addr, data);
+ ret = rda1846_read_register_raw(addr - RDA1846_ADDR_LIMIT + 1, data);
if(ret) return ret;
return rda1846_write_register_raw(RDA1846_ADDR_LIMIT, 0);