From 81ea11e2fee2c3658ac29c38193cc8475a68669a Mon Sep 17 00:00:00 2001 From: Philip Schell Date: Wed, 3 Apr 2019 13:39:46 +0200 Subject: [PATCH] Update Levels for Battery --- Lora-Map/Model/PositionItem.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Lora-Map/Model/PositionItem.cs b/Lora-Map/Model/PositionItem.cs index 6044e56..a193e6c 100644 --- a/Lora-Map/Model/PositionItem.cs +++ b/Lora-Map/Model/PositionItem.cs @@ -65,13 +65,13 @@ namespace Fraunhofer.Fit.IoT.LoraMap.Model { } this.Recievedtime = DateTime.UtcNow; this.Battery = Math.Round((Double)json["BatteryLevel"], 2); - if(this.Battery < 3) { + if(this.Battery < 3.59) { this.Batterysimple = 0; - } else if(this.Battery < 3.2) { + } else if(this.Battery < 3.69) { this.Batterysimple = 1; - } else if(this.Battery < 3.5) { + } else if(this.Battery < 3.77) { this.Batterysimple = 2; - } else if(this.Battery < 3.8) { + } else if(this.Battery < 3.97) { this.Batterysimple = 3; } else { this.Batterysimple = 4;