From b0b7e5dce8de2c8b20f8c9c1fc00b7de6bf64681 Mon Sep 17 00:00:00 2001 From: josesimoes Date: Thu, 12 Nov 2020 13:14:50 +0000 Subject: [PATCH] Fix reboot options - Need to be "flag" type. --- .../WireProtocol/RebootOptions.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/RebootOptions.cs b/nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/RebootOptions.cs index 70eb1dd9..33a69eb5 100644 --- a/nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/RebootOptions.cs +++ b/nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/RebootOptions.cs @@ -4,17 +4,22 @@ // See LICENSE file in the project root for full license information. // +using System; + namespace nanoFramework.Tools.Debugger { /// /// Reboot options for nanoFramework device. /// + [Flags] public enum RebootOptions { /// /// Hard reboot CPU. /// +#pragma warning disable S2346 // Need this to be 0 because of native implementation NormalReboot = 0, +#pragma warning restore S2346 // Flags enumerations zero-value members should be named "None" /// /// Reboot and enter nanoBooter. @@ -34,6 +39,6 @@ public enum RebootOptions /// /// Reboot and enter proprietary bootloader. /// - EnterProprietaryBooter = 5, + EnterProprietaryBooter = 8, }; }