[1.2.2] Bugfix, if only recieve panic packet with gps data, update the marker on the map also
This commit is contained in:
parent
617fbc4dea
commit
08180734e8
@ -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
|
||||
*/
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user