Update index.html

This commit is contained in:
Paul Wieland 2024-11-12 13:40:35 -05:00
parent 4ee1ddf0bc
commit fbcc2ae75d
1 changed files with 2 additions and 2 deletions

View File

@ -296,11 +296,11 @@
var diagram_protocol = protocol.replace("v1","").replace("v2","");
var img = new Image();
img.src = `wiring_diagrams/${hardware}_${protocol}.png`;
img.src = `wiring_diagrams/${hardware}_${diagram_protocol}.png`;
if(img.height !== 0){
document.querySelector("#wiring_diagram").src = img.src;
}else{
document.querySelector("#wiring_diagram").src = "v25iboard_secplus.png";
document.querySelector("#wiring_diagram").src = "wiring_diagrams/v25iboard_secplus.png";
}
if(protocol !== "secplusv2" && (hardware === "v2board_esp8266_d1_mini" || hardware === "v2board_esp32_d1_mini")){