Browse Source

Fix typo: TOOGLE -> TOGGLE

i18n
Ryan Jarvis 7 years ago
committed by Xose Pérez
parent
commit
46de434674
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      code/espurna/config/general.h
  2. +2
    -2
      code/espurna/relay.ino
  3. +1
    -1
      code/html/index.html

+ 1
- 1
code/espurna/config/general.h View File

@ -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


+ 2
- 2
code/espurna/relay.ino View File

@ -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();


+ 1
- 1
code/html/index.html View File

@ -990,7 +990,7 @@
<option value="0">Always OFF</option>
<option value="1">Always ON</option>
<option value="2">Same as before</option>
<option value="3">Toogle before</option>
<option value="3">Toggle before</option>
</select>
</div>
<div class="pure-g">


Loading…
Cancel
Save