temp fix for r828D init fail

This commit is contained in:
rtlsdrblog 2023-05-13 21:48:43 +12:00
parent a72e764bec
commit c62238d98a

View File

@ -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;