DBSRX C++ Driver, Read I2C Issues

Hey, I’m almost done with the C++ port of the DBSRX driver, I’m stuck
with one thing though. When I attempt to read the Max2118 status bytes
in order to perform the charge pump calibration the read_i2c function
keeps returning a null string. Any ideas on what might be the problem?
This is basically the read_i2c call:

#define I2C_ADDR 0x65
std::string read_buff;
read_buff = urx->read_i2c(I2C_ADDR, 2);

Thanks

Quoting Gregory W Heckler ([email protected]):
[…]

in order to perform the charge pump calibration the read_i2c function
keeps returning a null string. Any ideas on what might be the problem?
This is basically the read_i2c call:

#define I2C_ADDR 0x65

The only thing I can think of is kinda obvious. You realize that 0x65
is side B, right? Do you have something on side B? (If not, slap self
on forehead and then try the constant 0x67.)


Joshua L., PhD. – [email protected]

Doh, you are exactly right! Flagellates self

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs