mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
fix for LPD8806 issue (#315)
make writebytes call consistent with other devices
This commit is contained in:
parent
dca2169c0c
commit
ec283cc22b
@ -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());
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user