From ce897960a23e89baafe84b924faa3572f3b33c0c Mon Sep 17 00:00:00 2001
From: fvanroie
Date: Thu, 28 May 2020 14:54:46 +0200
Subject: [PATCH] Ad GPIO defines
---
src/hasp_http.cpp | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/src/hasp_http.cpp b/src/hasp_http.cpp
index f6844a67..10ff8bfe 100644
--- a/src/hasp_http.cpp
+++ b/src/hasp_http.cpp
@@ -13,6 +13,7 @@
#include "hasp_gui.h"
#include "hasp_hal.h"
+#include "hasp_gpio.h"
#include "hasp_debug.h"
#include "hasp_config.h"
#include "hasp_dispatch.h"
@@ -1204,7 +1205,7 @@ void webHandleGpioConfig()
////////////////////////////////////////////////////////////////////////////////////////////////////
void webHandleGpioOptions()
{ // http://plate01/config/gpio/options
- if(!httpIsAuthenticated(F("config/gui"))) return;
+ if(!httpIsAuthenticated(F("config/gpio"))) return;
{
DynamicJsonDocument settings(256);
@@ -1223,10 +1224,14 @@ void webHandleGpioOptions()
httpMessage += F("< Options
");
httpMessage += F("Type
");
httpMessage += F("Channel
");
- httpMessage += F("State
");
+ httpMessage += PSTR(
+ "");
webSendPage(httpGetNodename(), httpMessage.length(), false);
webServer.sendContent(httpMessage);