rv701 / SPL06-007

Ardino SPL06-007 Library
12 stars 7 forks source link

Arduino Library, but it doesn't work #11

Open funnypolynomial opened 10 months ago

funnypolynomial commented 10 months ago

This is linked-to by Arduino.cc but it doesn't work (on, for example, a Uno). Please make the simple fix: get_traw(), get_praw(), get_c00() and get_c10() have if(tmp & (1 << nn)) where nn is > 15. Change them to if(tmp & (1L << nn)) and the library will function.

If you also changei2c_eeprom_read_uint8_t( uint8_t deviceaddress, uint8_t eeaddress ) to call Wire.requestFrom(deviceaddress, (uint8_t)1);

the Library will compile without warnings.

Thanks!