Patch to fix some compiler warnings

This commit is contained in:
Scott Lahteine
2017-07-28 02:19:50 -05:00
parent 48c5f3dddf
commit bfd396c13a
3 changed files with 23 additions and 16 deletions

View File

@@ -88,13 +88,15 @@ static void PCA9632_WriteAllRegisters(const byte addr, const byte regadd, const
Wire.endTransmission();
}
static byte PCA9632_ReadRegister(const byte addr, const byte regadd) {
Wire.beginTransmission(addr);
Wire.write(regadd);
const byte value = Wire.read();
Wire.endTransmission();
return value;
}
#if 0
static byte PCA9632_ReadRegister(const byte addr, const byte regadd) {
Wire.beginTransmission(addr);
Wire.write(regadd);
const byte value = Wire.read();
Wire.endTransmission();
return value;
}
#endif
void PCA9632_SetColor(const byte r, const byte g, const byte b) {
if (!PCA_init) {