diff --git a/esp-link/cgi.h b/esp-link/cgi.h index cb897b0..330a5e6 100644 --- a/esp-link/cgi.h +++ b/esp-link/cgi.h @@ -26,7 +26,7 @@ int8_t getUInt16Arg(HttpdConnData *connData, char *name, uint16_t *config); // Get the HTTP query-string param 'name' and store it boolean value at 'config', // supports 1/true and 0/false, returns -1 on error, 0 if not found, 1 if found -int8_t getBoolArg(HttpdConnData *connData, char *name, bool *config); +int8_t getBoolArg(HttpdConnData *connData, char *name, uint8_t *config); int cgiMenu(HttpdConnData *connData); diff --git a/esp-link/cgipins.c b/esp-link/cgipins.c index 8455a16..6273389 100644 --- a/esp-link/cgipins.c +++ b/esp-link/cgipins.c @@ -49,7 +49,7 @@ int ICACHE_FLASH_ATTR cgiPinsSet(HttpdConnData *connData) { int8_t ok = 0; int8_t reset, isp, conn, ser; - bool swap, rxpup; + uint8_t swap, rxpup; ok |= getInt8Arg(connData, "reset", &reset); ok |= getInt8Arg(connData, "isp", &isp); ok |= getInt8Arg(connData, "conn", &conn);