mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fix set_devboot docs
This commit is contained in:
parent
f8bce54bd0
commit
e1ff04b1fc
1 changed files with 3 additions and 1 deletions
|
|
@ -510,12 +510,14 @@ impl Gfx {
|
||||||
/// status bar, so there is an obvious indicator that the kernel has yet to be self-signed. Self-signed
|
/// status bar, so there is an obvious indicator that the kernel has yet to be self-signed. Self-signed
|
||||||
/// kernels do not have this signature.
|
/// kernels do not have this signature.
|
||||||
///
|
///
|
||||||
|
/// NOTE: This call is a one-way operation. Once the developer boot mode is enabled, it cannot be
|
||||||
|
/// disabled.
|
||||||
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```
|
/// ```
|
||||||
/// use graphics_server::Gfx;
|
/// use graphics_server::Gfx;
|
||||||
/// let gfx = Gfx::new(&xous_names::XousNames::new().unwrap()).unwrap();
|
/// let gfx = Gfx::new(&xous_names::XousNames::new().unwrap()).unwrap();
|
||||||
/// gfx.set_devboot(true); // Enable developer boot mode
|
/// gfx.set_devboot(true); // Enable developer boot mode
|
||||||
/// gfx.set_devboot(false); // Disable developer boot mode
|
|
||||||
/// ```
|
/// ```
|
||||||
pub fn set_devboot(&self, enable: bool) -> Result<(), xous::Error> {
|
pub fn set_devboot(&self, enable: bool) -> Result<(), xous::Error> {
|
||||||
let ena = if enable { 1 } else { 0 };
|
let ena = if enable { 1 } else { 0 };
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue