mirror of
https://github.com/zyphlar/LanternPowerMonitor.git
synced 2024-03-08 14:07:47 +00:00
Auto-detect frequency on first hub startup. If frequency is 50Hz, assume 230V. (This should work for 95% of cases)
This commit is contained in:
@@ -187,7 +187,7 @@ public class MongoCurrentMonitorDao implements CurrentMonitorDao {
|
||||
for (int offset = 0; offset < bytesInDay; offset += 4) {
|
||||
nanBuffer.putFloat(offset, Float.NaN);
|
||||
}
|
||||
for (int key : breakerKeys.keySet()) {
|
||||
for (int key : breakerKeys.values()) {
|
||||
dayReadings.computeIfAbsent(key, _k->nanArray);
|
||||
}
|
||||
for (Entry<Integer, byte[]> be : dayReadings.entrySet()) {
|
||||
|
||||
Reference in New Issue
Block a user