mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fixes - Smoothing, Color-Calibration (#1532)
* Smoothing Remove ouputrate as duplicate to update frequency * Serial LDEDDevices -Increase writeBlack to overcome issues on high baud rates * Serial LED-Devices - Support device feedback, show statistics provided by HyperSerial * Fix - Update Color Calibration on Remote Control when settings saved * Serial LED-Devices - Support device feedback, show statistics provided by HyperSerial
This commit is contained in:
@@ -119,7 +119,7 @@ void LedDeviceAdalight::prepareHeader()
|
||||
qToBigEndian<quint16>(static_cast<quint16>(totalLedCount), &_ledBuffer[3]);
|
||||
_ledBuffer[5] = _ledBuffer[3] ^ _ledBuffer[4] ^ 0x55; // Checksum
|
||||
|
||||
Debug( _log, "Adalight header for %d leds: %c%c%c 0x%02x 0x%02x 0x%02x", _ledCount,
|
||||
Debug( _log, "Adalight header for %d leds (size: %d): %c%c%c 0x%02x 0x%02x 0x%02x", _ledCount, _ledBuffer.size(),
|
||||
_ledBuffer[0], _ledBuffer[1], _ledBuffer[2], _ledBuffer[3], _ledBuffer[4], _ledBuffer[5] );
|
||||
}
|
||||
|
||||
@@ -179,6 +179,31 @@ int LedDeviceAdalight::write(const std::vector<ColorRgb> & ledValues)
|
||||
return rc;
|
||||
}
|
||||
|
||||
void LedDeviceAdalight::readFeedback()
|
||||
{
|
||||
if (_streamProtocol == Adalight::AWA)
|
||||
{
|
||||
bool continuousLines {true};
|
||||
while ( _rs232Port.canReadLine() )
|
||||
{
|
||||
QByteArray record = _rs232Port.readLine();
|
||||
if (record.startsWith("FPS:"))
|
||||
{
|
||||
if (continuousLines)
|
||||
{
|
||||
continuousLines = false;
|
||||
}
|
||||
Debug(_log, "Statistics %s", record.trimmed().constData());
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << record.toStdString() << std::flush;
|
||||
continuousLines = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LedDeviceAdalight::whiteChannelExtension(uint8_t*& writer)
|
||||
{
|
||||
if (_streamProtocol == Adalight::AWA && _white_channel_calibration)
|
||||
|
Reference in New Issue
Block a user