mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-12-31 21:37:13 +01:00
temp fix for r828D init fail
This commit is contained in:
parent
a72e764bec
commit
c62238d98a
@ -277,9 +277,12 @@ static int r82xx_write(struct r82xx_priv *priv, uint8_t reg, const uint8_t *val,
|
|||||||
if (rc != size + 1) {
|
if (rc != size + 1) {
|
||||||
fprintf(stderr, "%s: i2c wr failed=%d reg=%02x len=%d\n",
|
fprintf(stderr, "%s: i2c wr failed=%d reg=%02x len=%d\n",
|
||||||
__FUNCTION__, rc, reg, size);
|
__FUNCTION__, rc, reg, size);
|
||||||
if (rc < 0)
|
// R828D causes an error on reg 0x0c and 0x10, and this causes the init to fail
|
||||||
return rc;
|
// But if we just ignore the errors, eventhing works fine.
|
||||||
return -1;
|
// TODO: Look into why 0x0C and 0x10 cause a i2c wr failed=-1 error with the R828D
|
||||||
|
//if (rc < 0)
|
||||||
|
// return rc;
|
||||||
|
//return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
reg += size;
|
reg += size;
|
||||||
|
Loading…
Reference in New Issue
Block a user