Fixed GPIO HAN select for ESP8266

This commit is contained in:
Gunnar Skjold
2023-02-12 20:48:38 +01:00
parent 0093410e05
commit 4d6e63a171
2 changed files with 17 additions and 19 deletions

File diff suppressed because one or more lines are too long

View File

@@ -19,14 +19,12 @@
<option value={18}>UART1</option>
{/if}
{#if chip.startsWith('esp32')}
{#each {length: gpioMax+1} as _, i}
{#if i > 3
&& !(chip == 'esp32' && (i == 9 || i == 16))
&& !(chip == 'esp32s2' && i == 18)
&& !(chip == 'esp8266' && (i == 3 || i == 113))
}
<option value={i}>GPIO{i}</option>
{/if}
{/each}
{/if}
{#each {length: gpioMax+1} as _, i}
{#if i > 3
&& !(chip == 'esp32' && (i == 9 || i == 16))
&& !(chip == 'esp32s2' && i == 18)
&& !(chip == 'esp8266' && (i == 3 || i == 113))
}
<option value={i}>GPIO{i}</option>
{/if}
{/each}