mirror of
https://github.com/martin-ger/esp_wifi_repeater.git
synced 2026-07-28 04:06:57 +00:00
+1
-1
@@ -164,7 +164,7 @@ uint32_t reg0, reg1, reg3;
|
||||
int i;
|
||||
for (i=0; i<17; i++)
|
||||
{
|
||||
config->gpiomode[1] = UNDEFINED;
|
||||
config->gpiomode[i] = UNDEFINED;
|
||||
config->gpio_trigger_pin[i] = -1;
|
||||
config->gpio_trigger_type[i] = NONE;
|
||||
}
|
||||
|
||||
+2
-2
@@ -2705,13 +2705,13 @@ void ICACHE_FLASH_ATTR console_handle_command(struct espconn *pespconn)
|
||||
uint8_t *action = tokens[2]; // mode|set|get
|
||||
uint8_t *value = nTokens >= 4 ? tokens[3] : "";
|
||||
|
||||
if ((pin < 0) && (pin > 16))
|
||||
if ((pin < 0) || (pin > 16))
|
||||
{
|
||||
os_sprintf_flash(response, "Invalid pin number (try 0-16)\r\n");
|
||||
goto command_handled;
|
||||
}
|
||||
|
||||
os_sprintf(response, "Successfuly executed %d %s %s\r\n", pin, action, value);
|
||||
os_sprintf(response, "Successfully executed %d %s %s\r\n", pin, action, value);
|
||||
|
||||
if (strcmp(action, "mode")==0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user