Commit 1f3f0fb3 authored by Jan Wagemakers's avatar Jan Wagemakers

remove oldmin (always do mm=)

parent 307ae8b0
......@@ -33,8 +33,6 @@ public class StartupRunner implements CommandLineRunner {
private int oldMonth = -1;
private int oldDay = -1;
private int oldHour = -1;
private int oldMin = -1;
// private static float outsideTemp;
@Autowired
private UserRepository userRepository;
......@@ -130,9 +128,7 @@ public class StartupRunner implements CommandLineRunner {
if (SERIAL.sethh(hour)) oldHour = hour;
}
if (oldMin != min) {
if (SERIAL.setmm(min)) oldMin = min;
}
SERIAL.setmm(min);
// get status of thermostats relais (OutPut)
int op = SERIAL.getOP();
......@@ -202,7 +198,7 @@ public class StartupRunner implements CommandLineRunner {
private void communicationError(String string) {
data.add(string);
oldYear = oldMonth = oldDay = oldHour = oldMin = -1;
oldYear = oldMonth = oldDay = oldHour = -1;
oldOT = -1;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment