Exclude hub75 from pin validdation for xml.cpp
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user