Update Sk6812 baud range and ensure range in UI

This commit is contained in:
LordGrey 2023-04-02 12:53:03 +00:00
parent 6941f4c4f7
commit 5586381a68
2 changed files with 4 additions and 2 deletions

View File

@ -34,7 +34,7 @@ bool LedDeviceSk6812_ftdi::init(const QJsonObject &deviceConfig)
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;
_ledBuffer.resize(_ledRGBWCount * SPI_BYTES_PER_COLOUR + SPI_FRAME_END_LATCH_BYTES, 0x00);

View File

@ -13,6 +13,8 @@
"step": 100000,
"title": "edt_dev_spec_baudrate_title",
"default": 3200000,
"minimum": 2050000,
"maximum": 3750000,
"propertyOrder": 2
},
"brightnessControlMaxLevel": {