Vishay UV Sensor I2C library
Revision 5:10949e9af82a, committed 2019-11-10
- Comitter:
- MACRUM
- Date:
- Sun Nov 10 01:46:31 2019 +0000
- Parent:
- 4:9518befb9fd3
- Commit message:
- Fixed build error by ARMC6
Changed in this revision
VEML6075.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/VEML6075.cpp Fri Oct 27 04:56:45 2017 +0000 +++ b/VEML6075.cpp Sun Nov 10 01:46:31 2019 +0000 @@ -183,7 +183,7 @@ } void VEML6075::readRegs(int addr, uint8_t * data, int len) { - char t[1] = {addr}; + char t[1] = {(char)addr}; m_i2c.write(m_addr, t, 1, true); m_i2c.read(m_addr, (char *)data, len); }