From 7f59e76c72cd229ca233384c7414c3310bc384dd Mon Sep 17 00:00:00 2001 From: Charles Crossan Date: Sun, 20 Dec 2020 21:47:46 -0500 Subject: [PATCH] fix formatting --- src/meshwifi/meshhttp.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/meshwifi/meshhttp.cpp b/src/meshwifi/meshhttp.cpp index 87302816..1af53112 100644 --- a/src/meshwifi/meshhttp.cpp +++ b/src/meshwifi/meshhttp.cpp @@ -979,27 +979,25 @@ void handleBlinkLED(HTTPRequest *req, HTTPResponse *res) res->setHeader("Content-Type", "application/json"); ResourceParameters *params = req->getParams(); - std::string blink_target; + std::string blink_target; - if (! params->getQueryParameter("blink_target", blink_target)) { - // if no blink_target was supplied in the URL parameters of the + if (!params->getQueryParameter("blink_target", blink_target)) { + // if no blink_target was supplied in the URL parameters of the // POST request, then assume we should blink the LED - blink_target = "LED"; + blink_target = "LED"; } - if (blink_target == "LED" ) { + if (blink_target == "LED") { uint8_t count = 10; - while (count > 0) - { + while (count > 0) { setLed(true); delay(50); setLed(false); delay(50); count = count - 1; } - } - else { - screen->blink(); + } else { + screen->blink(); } res->println("{");