apply formatting guidelines to existing files
This commit is contained in:
parent
e47bc6c4ab
commit
8c9de56fab
|
@ -194,14 +194,16 @@ void handleTime() {
|
|||
server.arg(args[arg])[1]};
|
||||
char buff_m[2][2] = {server.arg(args[arg])[3],
|
||||
server.arg(args[arg])[4]};
|
||||
sprintf(time_all[arg * 2][server.arg("rule").toInt()], "%s", buff_h);
|
||||
sprintf(time_all[arg * 2][server.arg("rule").toInt()], "%s",
|
||||
buff_h);
|
||||
sprintf(time_all[arg * 2 + 1][server.arg("rule").toInt()], "%s",
|
||||
buff_m);
|
||||
|
||||
EEPROM.put(server.arg("rule").toInt() * 4 + arg * 64,
|
||||
atoi(time_all[arg * 2][server.arg("rule").toInt()]));
|
||||
EEPROM.commit();
|
||||
EEPROM.put(server.arg("rule").toInt() * 4 + arg * 64 + 32,
|
||||
EEPROM.put(
|
||||
server.arg("rule").toInt() * 4 + arg * 64 + 32,
|
||||
atoi(time_all[arg * 2 + 1][server.arg("rule").toInt()]));
|
||||
EEPROM.commit();
|
||||
}
|
||||
|
@ -226,7 +228,8 @@ void timer() {
|
|||
if ((((myTime.hour() * 60 + myTime.minute() >=
|
||||
atoi(time_all[0][ri]) * 60 + atoi(time_all[1][ri])) and
|
||||
(myTime.hour() * 60 + myTime.minute() <
|
||||
atoi(time_all[2][ri]) * 60 + atoi(time_all[3][ri]))) // first range
|
||||
atoi(time_all[2][ri]) * 60 +
|
||||
atoi(time_all[3][ri]))) // first range
|
||||
or ((myTime.hour() * 60 + myTime.minute() >=
|
||||
atoi(time_all[4][ri]) * 60 + atoi(time_all[5][ri])) and
|
||||
(myTime.hour() * 60 + myTime.minute() <
|
||||
|
|
Loading…
Reference in New Issue