From 1e8ba1c6834f8b9da512f3ddc38c9ab0fe920441 Mon Sep 17 00:00:00 2001 From: Jorge Ramirez Date: Fri, 29 Sep 2023 17:05:48 -0700 Subject: [PATCH 1/2] Mono to Runtime --- Source/v2/Meadow.Hcom/Connections/SerialConnection.cs | 8 ++++---- Source/v2/Meadow.Hcom/DeviceInfo.cs | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/v2/Meadow.Hcom/Connections/SerialConnection.cs b/Source/v2/Meadow.Hcom/Connections/SerialConnection.cs index db99e3c1..ce9fd4aa 100644 --- a/Source/v2/Meadow.Hcom/Connections/SerialConnection.cs +++ b/Source/v2/Meadow.Hcom/Connections/SerialConnection.cs @@ -489,10 +489,10 @@ protected override void Dispose(bool disposing) private List StdErr { get; } = new List(); private List InfoMessages { get; } = new List(); - private const string RuntimeSucessfullyEnabledToken = "Meadow successfully started MONO"; - private const string RuntimeSucessfullyDisabledToken = "Mono is disabled"; - private const string RuntimeStateToken = "Mono is"; - private const string RuntimeIsEnabledToken = "Mono is enabled"; + private const string RuntimeSucessfullyEnabledToken = "Meadow successfully started the runtime"; + private const string RuntimeSucessfullyDisabledToken = "Runtime is disabled"; + private const string RuntimeStateToken = "Runtime is"; + private const string RuntimeIsEnabledToken = "Runtime is enabled"; private const string RtcRetrievalToken = "UTC time:"; public int CommandTimeoutSeconds { get; set; } = 30; diff --git a/Source/v2/Meadow.Hcom/DeviceInfo.cs b/Source/v2/Meadow.Hcom/DeviceInfo.cs index 8109db97..9d9912aa 100644 --- a/Source/v2/Meadow.Hcom/DeviceInfo.cs +++ b/Source/v2/Meadow.Hcom/DeviceInfo.cs @@ -71,11 +71,11 @@ public override string ToString() { if (macCount > 1) { - deviceInfo.AppendLine(" MAC Addresses - " ); + deviceInfo.AppendLine(" MAC Addresses - "); } else { - deviceInfo.AppendLine(" MAC Address - " ); + deviceInfo.AppendLine(" MAC Address - "); } deviceInfo.AppendLine($"{macAddresses}"); } @@ -83,7 +83,7 @@ public override string ToString() deviceInfo.AppendLine(); deviceInfo.AppendLine($"Firmware Versions "); deviceInfo.AppendLine($" OS: {OsVersion}"); - deviceInfo.AppendLine($" Mono: {RuntimeVersion}"); + deviceInfo.AppendLine($" Runtime: {RuntimeVersion}"); deviceInfo.AppendLine($" Coprocessor: {CoprocessorOsVersion}"); deviceInfo.AppendLine($" Protocol: {Protocol.HCOM_PROTOCOL_HCOM_VERSION_NUMBER}"); From 5cb774f437b50268b48e2d4d61bffcebead8af07 Mon Sep 17 00:00:00 2001 From: Jorge Ramirez Date: Fri, 29 Sep 2023 17:15:28 -0700 Subject: [PATCH 2/2] Reverse tokens. --- Source/v2/Meadow.Hcom/Connections/SerialConnection.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/v2/Meadow.Hcom/Connections/SerialConnection.cs b/Source/v2/Meadow.Hcom/Connections/SerialConnection.cs index ce9fd4aa..db99e3c1 100644 --- a/Source/v2/Meadow.Hcom/Connections/SerialConnection.cs +++ b/Source/v2/Meadow.Hcom/Connections/SerialConnection.cs @@ -489,10 +489,10 @@ protected override void Dispose(bool disposing) private List StdErr { get; } = new List(); private List InfoMessages { get; } = new List(); - private const string RuntimeSucessfullyEnabledToken = "Meadow successfully started the runtime"; - private const string RuntimeSucessfullyDisabledToken = "Runtime is disabled"; - private const string RuntimeStateToken = "Runtime is"; - private const string RuntimeIsEnabledToken = "Runtime is enabled"; + private const string RuntimeSucessfullyEnabledToken = "Meadow successfully started MONO"; + private const string RuntimeSucessfullyDisabledToken = "Mono is disabled"; + private const string RuntimeStateToken = "Mono is"; + private const string RuntimeIsEnabledToken = "Mono is enabled"; private const string RtcRetrievalToken = "UTC time:"; public int CommandTimeoutSeconds { get; set; } = 30;