Browse Source

Added flashmode command so we can flash the FC by turning off the SBUS signal

master
Englebert 3 years ago
parent
commit
dedf871e36
  1. 10
      src/Web.cpp

10
src/Web.cpp

@ -87,6 +87,16 @@ void WEB::begin(void) {
server.send(200, "text/html", index_html_str);
});
// FC Flash mode
server.on("/flashmode", HTTP_GET, []() {
server.sendHeader("Connection", "close");
server.send(200, "text/html", "FC FLASH MODE");
// Disable SBUS
sbus_enable = false;
GPOC = (1 << SBUS_PORT);
});
// Reset
server.on("/reset", HTTP_GET, []() {
server.sendHeader("Connection", "close");

Loading…
Cancel
Save