post-merge changes
reconciling disagreements between MM and AC source code
This commit is contained in:
@@ -58,6 +58,7 @@ String PinManagerClass::getOwnerText(PinOwner tag) {
|
||||
case PinOwner::UM_BME280 : return(F("BME280 (UM)")); break; // "usermod_bme280.h" -- Uses "standard" HW_I2C pins
|
||||
case PinOwner::UM_BH1750 : return(F("BH1750 (UM)")); break; // "usermod_bh1750.h" -- Uses "standard" HW_I2C pins
|
||||
case PinOwner::UM_SdCard : return(F("SD-Card (UM)")); break; // "usermod_sd_card.h" -- Uses SPI pins
|
||||
case PinOwner::UM_PWM_OUTPUTS : return(F("PWM Output (UM)")); break; // "usermod_pwm_outputs.h"
|
||||
|
||||
case PinOwner::UM_Example : return(F("example (UM)")); break; // unspecified usermod
|
||||
case PinOwner::UM_Unspecified : return(F("usermod (UM)")); break; // unspecified usermod
|
||||
@@ -497,7 +498,6 @@ bool PinManagerClass::isPinOk(byte gpio, bool output)
|
||||
PinOwner PinManagerClass::getPinOwner(byte gpio) {
|
||||
if (gpio >= WLED_NUM_PINS) return PinOwner::None; // catch error case, to avoid array out-of-bounds access
|
||||
if (!isPinOk(gpio, false)) return PinOwner::None;
|
||||
if (gpio >= WLED_NUM_PINS) return PinOwner::None; // WLEDMM: catch error cases
|
||||
return ownerTag[gpio];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user