Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reboot options #256

Merged
merged 1 commit into from
Nov 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
};
}