posxt-merge fixing

small update, to preserve MM-specific parts.
This commit is contained in:
Frank
2022-12-17 17:45:39 +01:00
parent b05229936d
commit 6385bf41aa
2 changed files with 2 additions and 2 deletions

View File

@@ -208,7 +208,7 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
if (((buttonType[s] == BTN_TYPE_ANALOG) || (buttonType[s] == BTN_TYPE_ANALOG_INVERTED)) && (digitalPinToAnalogChannel(btnPin[s]) < 0))
{
// not an ADC analog pin
DEBUG_PRINTF("PIN ALLOC error: GPIO%d for analog button #%d is not an analog pin!\n", btnPin[s], s);
USER_PRINTF("PIN ALLOC error: GPIO%d for analog button #%d is not an analog pin!\n", btnPin[s], s); // WLEDMM
btnPin[s] = -1;
pinManager.deallocatePin(pin,PinOwner::Button);
}