mirror of
https://github.com/wled/WLED.git
synced 2025-11-08 18:48:53 +00:00
bug fix
This commit is contained in:
@@ -192,7 +192,7 @@ void appendGPIOinfo() {
|
||||
// add info for read-only GPIO
|
||||
oappend(SET_F("d.ro_gpio=["));
|
||||
const unsigned* readOnlyPins = pinManager.getReadOnlyPins();
|
||||
const unsigned numReadOnlyPins = ((sizeof readOnlyPins) / (sizeof readOnlyPins[0]));
|
||||
const unsigned numReadOnlyPins = (sizeof *readOnlyPins) / (sizeof readOnlyPins[0]);
|
||||
for (unsigned i = 0; i < numReadOnlyPins; i++) {
|
||||
// Ignore 255
|
||||
if (readOnlyPins[i] <= WLED_NUM_PINS) {
|
||||
|
||||
Reference in New Issue
Block a user