mirror of
https://github.com/zyphlar/LanternPowerMonitor.git
synced 2024-03-08 14:07:47 +00:00
Improve 3A+ case, making it easier to take the pi out. Improve the fit of the Z2 case.
Make it possible for a hub to reload a config automatically when it changes without being restarted. Prevent the auto-calibration on first install from being stomped by the app. Allow updating the hub software via the app.
This commit is contained in:
@@ -113,6 +113,12 @@ public class RulesEngine {
|
||||
timer.schedule(nextTask, nextDate);
|
||||
}
|
||||
|
||||
public void schedule(TimerTask _task, long _delay) {
|
||||
if (timer == null)
|
||||
return;
|
||||
timer.schedule(_task, _delay);
|
||||
}
|
||||
|
||||
public static void shutdown() {
|
||||
if (INSTANCE == null)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user