diff --git a/Source/Meadow.Foundation.Core/Simulation/SimulatedTemperatureSensor.cs b/Source/Meadow.Foundation.Core/Simulation/SimulatedTemperatureSensor.cs index e620699d1..4a1a2ead7 100644 --- a/Source/Meadow.Foundation.Core/Simulation/SimulatedTemperatureSensor.cs +++ b/Source/Meadow.Foundation.Core/Simulation/SimulatedTemperatureSensor.cs @@ -70,8 +70,6 @@ public SimulatedTemperatureSensor( _temperature = initialTemperature; _minTemperature = minimumTemperature; _maxTemperature = maximumTemperature; - - StartSimulation(behavior); } private void SimulationProc(object? o) @@ -104,7 +102,7 @@ private void ReportTimerProc(object? o) public Units.Temperature? Temperature { get => _temperature; - private set + set { if (value == Temperature) return; diff --git a/Source/Meadow.Foundation.Libraries_and_Frameworks/Graphics.MicroLayout/Driver/Controls/Label.cs b/Source/Meadow.Foundation.Libraries_and_Frameworks/Graphics.MicroLayout/Driver/Controls/Label.cs index 3ce787354..27354a0f8 100644 --- a/Source/Meadow.Foundation.Libraries_and_Frameworks/Graphics.MicroLayout/Driver/Controls/Label.cs +++ b/Source/Meadow.Foundation.Libraries_and_Frameworks/Graphics.MicroLayout/Driver/Controls/Label.cs @@ -3,7 +3,7 @@ /// /// Represents a label display control in the user interface. /// -public class Label : ThemedControl +public class Label : ClickableControl { private static Color DefaultTextColor = Color.White; private static Color DefaultBackColor = Color.Transparent; diff --git a/Source/Meadow.Foundation.Libraries_and_Frameworks/Sensors.Location.Gnss.NmeaProcessor/Driver/Constants.cs b/Source/Meadow.Foundation.Libraries_and_Frameworks/Sensors.Location.Gnss.NmeaProcessor/Driver/Constants.cs new file mode 100644 index 000000000..882107726 --- /dev/null +++ b/Source/Meadow.Foundation.Libraries_and_Frameworks/Sensors.Location.Gnss.NmeaProcessor/Driver/Constants.cs @@ -0,0 +1,6 @@ +namespace Meadow.Foundation.Sensors.Location.Gnss; + +internal static class Constants +{ + public const string LogGroup = "nmea processor"; +} diff --git a/Source/Meadow.Foundation.Libraries_and_Frameworks/Sensors.Location.Gnss.NmeaProcessor/Driver/RmcDecoder.cs b/Source/Meadow.Foundation.Libraries_and_Frameworks/Sensors.Location.Gnss.NmeaProcessor/Driver/RmcDecoder.cs index 916fcf63e..0ad7bac53 100644 --- a/Source/Meadow.Foundation.Libraries_and_Frameworks/Sensors.Location.Gnss.NmeaProcessor/Driver/RmcDecoder.cs +++ b/Source/Meadow.Foundation.Libraries_and_Frameworks/Sensors.Location.Gnss.NmeaProcessor/Driver/RmcDecoder.cs @@ -34,7 +34,11 @@ public string Name /// The sentence public void Process(string sentence) { - Process(NmeaSentence.From(sentence)); + if (NmeaSentence.TryParse(sentence, out var s)) + { + Resolver.Log.Debug($"Failure parsing {sentence}", Constants.LogGroup); + Process(NmeaSentence.From(sentence)); + } } /// diff --git a/Source/Meadow.Foundation.Peripherals/Sensors.Gnss.NeoM8/Driver/NeoM8.cs b/Source/Meadow.Foundation.Peripherals/Sensors.Gnss.NeoM8/Driver/NeoM8.cs index 276974efd..2f85f93fd 100644 --- a/Source/Meadow.Foundation.Peripherals/Sensors.Gnss.NeoM8/Driver/NeoM8.cs +++ b/Source/Meadow.Foundation.Peripherals/Sensors.Gnss.NeoM8/Driver/NeoM8.cs @@ -18,7 +18,7 @@ public partial class NeoM8 : IGnssSensor, IDisposable /// /// Raised when GNSS data is received /// - public event EventHandler GnssDataReceived = default!; + public event EventHandler? GnssDataReceived = null; /// /// Supported GNSS result types