This commit is contained in:
Milos Kozak 2019-12-19 23:12:24 +01:00
parent e15a2d6b88
commit 9f27b4ae42

View file

@ -407,7 +407,7 @@ public class NSDeviceStatus {
}
Uploader uploader = uploaders.get(device);
// check if this is new data
if (clock != 0 && (uploader != null && clock > uploader.clock || uploader == null)) {
if (clock != 0 && battery != null && (uploader != null && clock > uploader.clock || uploader == null)) {
if (uploader == null)
uploader = new Uploader();
uploader.battery = battery;