Exclude hub75 from pin validdation for xml.cpp

This commit is contained in:
Will Tatam
2024-09-22 16:42:11 +01:00
parent 9a9c65ac8e
commit fbeead0c74
2 changed files with 2 additions and 1 deletions

View File

@@ -110,6 +110,7 @@ class Bus {
inline bool isOnOff() const { return isOnOff(_type); }
inline bool isPWM() const { return isPWM(_type); }
inline bool isVirtual() const { return isVirtual(_type); }
inline bool isHub75() const { return isHub75(_type); }
inline bool is16bit() const { return is16bit(_type); }
inline bool mustRefresh() const { return mustRefresh(_type); }
inline void setReversed(bool reversed) { _reversed = reversed; }

View File

@@ -370,7 +370,7 @@ void getSettingsJS(byte subPage, char* dest)
int nPins = bus->getPins(pins);
for (int i = 0; i < nPins; i++) {
lp[1] = offset+i;
if (PinManager::isPinOk(pins[i]) || bus->isVirtual()) sappend('v',lp,pins[i]);
if (PinManager::isPinOk(pins[i]) || bus->isVirtual() || bus->isHub75()) sappend('v',lp,pins[i]);
}
sappend('v',lc,bus->getLength());
sappend('v',lt,bus->getType());