[1.2.2] Bugfix, if only recieve panic packet with gps data, update the marker on the map also

This commit is contained in:
BlubbFish 2019-04-22 20:56:26 +02:00
parent 617fbc4dea
commit 08180734e8
2 changed files with 9 additions and 3 deletions

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Fraunhofer FIT")] [assembly: AssemblyCompany("Fraunhofer FIT")]
[assembly: AssemblyProduct("Lora-Map")] [assembly: AssemblyProduct("Lora-Map")]
[assembly: AssemblyCopyright("Copyright © 2018 - 21.04.2019")] [assembly: AssemblyCopyright("Copyright © 2018 - 22.04.2019")]
[assembly: AssemblyTrademark("Fraunhofer FIT, BlubbFish")] [assembly: AssemblyTrademark("Fraunhofer FIT, BlubbFish")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("de-DE")] [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, // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben: // übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.1")] [assembly: AssemblyVersion("1.2.2")]
[assembly: AssemblyFileVersion("1.2.1")] [assembly: AssemblyFileVersion("1.2.2")]
/* /*
* 1.1.1 Add Debian package config * 1.1.1 Add Debian package config
@ -46,4 +46,5 @@ using System.Runtime.InteropServices;
* 1.1.7 #8 Editor for Names * 1.1.7 #8 Editor for Names
* 1.2.0 #4 Possible to Ex and Import Setting * 1.2.0 #4 Possible to Ex and Import Setting
* 1.2.1 #6 Load the map from the Device * 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
*/ */

View File

@ -63,6 +63,11 @@ namespace Fraunhofer.Fit.IoT.LoraMap {
} else { } else {
this.alarms.Add(name, new AlarmItem(d)); 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!"); Console.WriteLine("PANIC erhalten!");
} }
} catch(Exception ex) { } catch(Exception ex) {