Replace buffer lock magic numbers with defines (#5217)

* replace magic numbers with defines
This commit is contained in:
Damian Schneider
2026-01-30 08:14:53 +01:00
committed by GitHub
parent c9f47d4b5c
commit 1031e70d70
18 changed files with 49 additions and 24 deletions

View File

@@ -74,7 +74,7 @@ void WS2812FX::setUpMatrix() {
size_t gapSize = 0;
int8_t *gapTable = nullptr;
if (isFile && requestJSONBufferLock(20)) {
if (isFile && requestJSONBufferLock(JSON_LOCK_LEDGAP)) {
DEBUG_PRINT(F("Reading LED gap from "));
DEBUG_PRINTLN(fileName);
// read the array into global JSON buffer