Skip to content

Commit

Permalink
Fix reboot options
Browse files Browse the repository at this point in the history
- Need to be "flag" type.
  • Loading branch information
josesimoes committed Nov 12, 2020
1 parent 915935b commit b0b7e5d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,22 @@
// See LICENSE file in the project root for full license information.
//

using System;

namespace nanoFramework.Tools.Debugger
{
/// <summary>
/// Reboot options for nanoFramework device.
/// </summary>
[Flags]
public enum RebootOptions
{
/// <summary>
/// Hard reboot CPU.
/// </summary>
#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"

/// <summary>
/// Reboot and enter nanoBooter.
Expand All @@ -34,6 +39,6 @@ public enum RebootOptions
/// <summary>
/// Reboot and enter proprietary bootloader.
/// </summary>
EnterProprietaryBooter = 5,
EnterProprietaryBooter = 8,
};
}

0 comments on commit b0b7e5d

Please sign in to comment.