From 08180734e8aed4e93579afca1cc12b69960af9da Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Mon, 22 Apr 2019 20:56:26 +0200 Subject: [PATCH] [1.2.2] Bugfix, if only recieve panic packet with gps data, update the marker on the map also --- Lora-Map/Properties/AssemblyInfo.cs | 7 ++++--- Lora-Map/Server.cs | 5 +++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Lora-Map/Properties/AssemblyInfo.cs b/Lora-Map/Properties/AssemblyInfo.cs index 36c65b8..e7b4f2c 100644 --- a/Lora-Map/Properties/AssemblyInfo.cs +++ b/Lora-Map/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ using System.Runtime.InteropServices; [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Fraunhofer FIT")] [assembly: AssemblyProduct("Lora-Map")] -[assembly: AssemblyCopyright("Copyright © 2018 - 21.04.2019")] +[assembly: AssemblyCopyright("Copyright © 2018 - 22.04.2019")] [assembly: AssemblyTrademark("Fraunhofer FIT, BlubbFish")] [assembly: AssemblyCulture("")] [assembly: NeutralResourcesLanguage("de-DE")] @@ -33,8 +33,8 @@ using System.Runtime.InteropServices; // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // übernehmen, indem Sie "*" eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.2.1")] -[assembly: AssemblyFileVersion("1.2.1")] +[assembly: AssemblyVersion("1.2.2")] +[assembly: AssemblyFileVersion("1.2.2")] /* * 1.1.1 Add Debian package config @@ -46,4 +46,5 @@ using System.Runtime.InteropServices; * 1.1.7 #8 Editor for Names * 1.2.0 #4 Possible to Ex and Import Setting * 1.2.1 #6 Load the map from the Device +* 1.2.2 Bugfix, if only recieve panic packet with gps data, update the marker on the map also */ diff --git a/Lora-Map/Server.cs b/Lora-Map/Server.cs index f41be46..ba602b0 100644 --- a/Lora-Map/Server.cs +++ b/Lora-Map/Server.cs @@ -63,6 +63,11 @@ namespace Fraunhofer.Fit.IoT.LoraMap { } else { this.alarms.Add(name, new AlarmItem(d)); } + if(this.positions.ContainsKey(name)) { + this.positions[name].Update(d); + } else { + this.positions.Add(name, new PositionItem(d, this.marker)); + } Console.WriteLine("PANIC erhalten!"); } } catch(Exception ex) {