fix for LPD8806 issue (#315)

make writebytes call consistent with other devices
This commit is contained in:
penfold42 2016-12-06 08:46:04 +11:00 committed by redPanther
parent dca2169c0c
commit ec283cc22b
2 changed files with 3 additions and 3 deletions

View File

@ -34,5 +34,5 @@ int LedDeviceLpd6803::write(const std::vector<ColorRgb> &ledValues)
}
// Write the data
return (writeBytes(_ledBuffer.size(), _ledBuffer.data()) < 0) ? -1 : 0;
return writeBytes(_ledBuffer.size(), _ledBuffer.data());
}

View File

@ -21,7 +21,7 @@ bool LedDeviceLpd8806::init(const QJsonObject &deviceConfig)
_ledBuffer.resize(messageLength, 0x00);
// Perform an initial reset to start accepting data on the first led
return writeBytes(clearSize, _ledBuffer.data()) >= 0;
return writeBytes(_ledBuffer.size(), _ledBuffer.data());
}
int LedDeviceLpd8806::write(const std::vector<ColorRgb> &ledValues)
@ -37,5 +37,5 @@ int LedDeviceLpd8806::write(const std::vector<ColorRgb> &ledValues)
}
// Write the data
return (writeBytes(_ledBuffer.size(), _ledBuffer.data()) < 0) ? -1 : 0;
return writeBytes(_ledBuffer.size(), _ledBuffer.data());
}