mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-12-29 04:17:16 +01:00
revert change, fixed in hardware
This commit is contained in:
parent
c62238d98a
commit
2a568c7948
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
#define R820T_I2C_ADDR 0x34
|
#define R820T_I2C_ADDR 0x34
|
||||||
#define R828D_I2C_ADDR 0x74
|
#define R828D_I2C_ADDR 0x74
|
||||||
#define R828D_XTAL_FREQ 28800000 //16000000
|
#define R828D_XTAL_FREQ 28800000 //28800000 //16000000
|
||||||
|
|
||||||
#define R82XX_CHECK_ADDR 0x00
|
#define R82XX_CHECK_ADDR 0x00
|
||||||
#define R82XX_CHECK_VAL 0x69
|
#define R82XX_CHECK_VAL 0x69
|
||||||
|
@ -277,12 +277,9 @@ 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);
|
||||||
// R828D causes an error on reg 0x0c and 0x10, and this causes the init to fail
|
if (rc < 0)
|
||||||
// But if we just ignore the errors, eventhing works fine.
|
return rc;
|
||||||
// TODO: Look into why 0x0C and 0x10 cause a i2c wr failed=-1 error with the R828D
|
return -1;
|
||||||
//if (rc < 0)
|
|
||||||
// return rc;
|
|
||||||
//return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
reg += size;
|
reg += size;
|
||||||
|
Loading…
Reference in New Issue
Block a user