mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Update Sk6812 baud range and ensure range in UI
This commit is contained in:
parent
6941f4c4f7
commit
5586381a68
@ -34,7 +34,7 @@ bool LedDeviceSk6812_ftdi::init(const QJsonObject &deviceConfig)
|
|||||||
|
|
||||||
Debug(_log, "whiteAlgorithm : %s", QSTRING_CSTR(whiteAlgorithm));
|
Debug(_log, "whiteAlgorithm : %s", QSTRING_CSTR(whiteAlgorithm));
|
||||||
|
|
||||||
WarningIf((_baudRate_Hz < 2050000 || _baudRate_Hz > 4000000), _log, "Baud rate %d outside recommended range (2050000 -> 4000000)", _baudRate_Hz);
|
WarningIf((_baudRate_Hz < 2050000 || _baudRate_Hz > 3750000), _log, "Baud rate %d outside recommended range (2050000 -> 3750000)", _baudRate_Hz);
|
||||||
|
|
||||||
const int SPI_FRAME_END_LATCH_BYTES = 3;
|
const int SPI_FRAME_END_LATCH_BYTES = 3;
|
||||||
_ledBuffer.resize(_ledRGBWCount * SPI_BYTES_PER_COLOUR + SPI_FRAME_END_LATCH_BYTES, 0x00);
|
_ledBuffer.resize(_ledRGBWCount * SPI_BYTES_PER_COLOUR + SPI_FRAME_END_LATCH_BYTES, 0x00);
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
"step": 100000,
|
"step": 100000,
|
||||||
"title": "edt_dev_spec_baudrate_title",
|
"title": "edt_dev_spec_baudrate_title",
|
||||||
"default": 3200000,
|
"default": 3200000,
|
||||||
|
"minimum": 2050000,
|
||||||
|
"maximum": 3750000,
|
||||||
"propertyOrder": 2
|
"propertyOrder": 2
|
||||||
},
|
},
|
||||||
"brightnessControlMaxLevel": {
|
"brightnessControlMaxLevel": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user