From 46de4346745be7ea0b4df3f70b3748f8cbf40eb0 Mon Sep 17 00:00:00 2001 From: Ryan Jarvis Date: Thu, 4 Jan 2018 18:58:03 -0800 Subject: [PATCH] Fix typo: TOOGLE -> TOGGLE --- code/espurna/config/general.h | 2 +- code/espurna/relay.ino | 4 ++-- code/html/index.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/espurna/config/general.h b/code/espurna/config/general.h index 4399fc47..92b8f13f 100644 --- a/code/espurna/config/general.h +++ b/code/espurna/config/general.h @@ -208,7 +208,7 @@ PROGMEM const char* const custom_reset_string[] = { #define RELAY_BOOT_OFF 0 #define RELAY_BOOT_ON 1 #define RELAY_BOOT_SAME 2 -#define RELAY_BOOT_TOOGLE 3 +#define RELAY_BOOT_TOGGLE 3 #define RELAY_TYPE_NORMAL 0 #define RELAY_TYPE_INVERSE 1 diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index 5834f353..074fd97e 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -345,7 +345,7 @@ void _relayBoot() { case RELAY_BOOT_SAME: status = ((mask & bit) == bit); break; - case RELAY_BOOT_TOOGLE: + case RELAY_BOOT_TOGGLE: status = ((mask & bit) != bit); mask ^= bit; trigger_save = true; @@ -364,7 +364,7 @@ void _relayBoot() { bit <<= 1; } - // Save if there is any relay in the RELAY_BOOT_TOOGLE mode + // Save if there is any relay in the RELAY_BOOT_TOGGLE mode if (trigger_save) { EEPROM.write(EEPROM_RELAY_STATUS, mask); EEPROM.commit(); diff --git a/code/html/index.html b/code/html/index.html index 5438111f..885ced97 100644 --- a/code/html/index.html +++ b/code/html/index.html @@ -990,7 +990,7 @@ - +