Browse Source

Prettify migrate.ino definitions

v2
Xose Pérez 6 years ago
parent
commit
2f067f77ed
2 changed files with 400 additions and 210 deletions
  1. +4
    -2
      code/espurna/light.ino
  2. +396
    -208
      code/espurna/migrate.ino

+ 4
- 2
code/espurna/light.ino View File

@ -4,7 +4,7 @@ LIGHT MODULE
Copyright (C) 2016-2018 by Xose Pérez <xose dot perez at gmail dot com>
Module key prefix: lit
Module key prefix: lit my
*/
@ -1006,7 +1006,9 @@ void _lightConfigure() {
}
bool _lightKeyCheck(const char * key) {
return (strncmp(key, "lit", 3) == 0);
if (strncmp(key, "lit", 3) == 0) return true;
if (strncmp(key, "my" , 2) == 0) return true;
return false;
}
void _lightBackwards() {


+ 396
- 208
code/espurna/migrate.ino
File diff suppressed because it is too large
View File


Loading…
Cancel
Save