85c0c98194
In _start_conversion(), the check for return code of _dev->transfer() was inverted. The structure also needs to be PACKED, otherwise there will be a hole in the middle. Fix these issues and use be16_t where it makes sense. In read() we need to check for the second byte of config register, so either make it an array of uint8_t or convert from big endian to host endianness. It's simpler to leave it as it was, accessing just the first byte. Also the conversion value is in be16 type an needs to be converted to host endiannes, not the opposite. Fix bus number: all boards that use it expect it to be on bus 1, not 0. |
||
---|---|---|
.. | ||
examples/AP_ADC_test | ||
AP_ADC_ADS1115.cpp | ||
AP_ADC_ADS1115.h | ||
AP_ADC_ADS7844.cpp | ||
AP_ADC_ADS7844.h | ||
AP_ADC.cpp | ||
AP_ADC.h | ||
keywords.txt |