()
| 117 | } |
| 118 | |
| 119 | function SDConfig() { |
| 120 | const miso = prompt("MISO pin", ""); |
| 121 | const mosi = prompt("MOSI pin", ""); |
| 122 | const sck = prompt("SCK pin", ""); |
| 123 | const cs = prompt("CS pin", ""); |
| 124 | if ([miso, mosi, sck, cs].some(isNullOrEmpty)) { |
| 125 | window.alert("Invalid pins"); |
| 126 | } else { |
| 127 | const xhr = httpRequest("GET", "/sdpins?miso=" + miso + "&mosi=" + mosi + "&sck=" + sck + "&cs=" + cs, { async: false }); |
| 128 | _("status").innerHTML = xhr.responseText; |
| 129 | } |
| 130 | } |
| 131 | function startUpdate(fileName) { |
| 132 | const formdata4 = new FormData(); |
| 133 | formdata4.append("fileName", fileName); |
nothing calls this directly
no test coverage detected