From 2e0add35488cbfd8536d7e7cbc9919e1185e4d45 Mon Sep 17 00:00:00 2001 From: Markus Krause Date: Sat, 25 Mar 2023 22:52:10 +0100 Subject: [PATCH] prevent selection of SPI pins for 8266 --- .gitignore | 1 + src/web/html/setup.html | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d6a35860..2ee4b679 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ src/web/html/tmp/* *.db *.suo *.ipch +src/output.map diff --git a/src/web/html/setup.html b/src/web/html/setup.html index 16d3ea00..87d74ce1 100644 --- a/src/web/html/setup.html +++ b/src/web/html/setup.html @@ -655,7 +655,11 @@ function parsePinout(obj, type, system) { var e = document.getElementById("pinout"); - pins = [['cs', 'pinCs'], ['ce', 'pinCe'], ['irq', 'pinIrq'], ['sclk', 'pinSclk'], ['mosi', 'pinMosi'], ['miso', 'pinMiso'], ['led0', 'pinLed0'], ['led1', 'pinLed1']]; + if ("ESP8266" == type) { + pins = [['cs', 'pinCs'], ['ce', 'pinCe'], ['irq', 'pinIrq'], ['led0', 'pinLed0'], ['led1', 'pinLed1']]; + } else { + pins = [['cs', 'pinCs'], ['ce', 'pinCe'], ['irq', 'pinIrq'], ['sclk', 'pinSclk'], ['mosi', 'pinMosi'], ['miso', 'pinMiso'], ['led0', 'pinLed0'], ['led1', 'pinLed1']]; + } for(p of pins) { e.append( ml("div", {class: "row mb-3"}, [