Fix preset variable

This commit is contained in:
cschwinne 2021-10-02 20:10:52 +02:00
parent c1b0877956
commit 0b0d18f182
3 changed files with 2 additions and 3 deletions

View File

@ -89,7 +89,7 @@ class Bus {
} }
virtual uint16_t getLength() { virtual uint16_t getLength() {
return 1; // is this ok? shouldn't it be 0 in virtual function? return 1;
} }
virtual void setColorOrder() {} virtual void setColorOrder() {}

View File

@ -99,7 +99,6 @@ Type:
<select name=DI onchange="SP(); adj();"> <select name=DI onchange="SP(); adj();">
<option value=5568>E1.31 (sACN)</option> <option value=5568>E1.31 (sACN)</option>
<option value=6454>Art-Net</option> <option value=6454>Art-Net</option>
<!--option value=4048>DDP</option-->
<option value=0 selected>Custom port</option> <option value=0 selected>Custom port</option>
</select><br> </select><br>
<div id=xp>Port: <input name="EP" type="number" min="1" max="65535" value="5568" class="d5" required><br></div> <div id=xp>Port: <input name="EP" type="number" min="1" max="65535" value="5568" class="d5" required><br></div>

View File

@ -564,7 +564,7 @@ WLED_GLOBAL JsonDocument* fileDoc;
WLED_GLOBAL bool doCloseFile _INIT(false); WLED_GLOBAL bool doCloseFile _INIT(false);
// presets // presets
WLED_GLOBAL int8_t currentPreset _INIT(-1); WLED_GLOBAL int16_t currentPreset _INIT(-1);
WLED_GLOBAL byte errorFlag _INIT(0); WLED_GLOBAL byte errorFlag _INIT(0);