Skip to content

feature: Logging #47

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

Merged
merged 14 commits into from
May 10, 2023
Merged
7 changes: 5 additions & 2 deletions crates/flipperzero/examples/hello-rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern crate flipperzero_rt;
#[cfg(feature = "alloc")]
extern crate flipperzero_alloc;

use flipperzero::println;
use flipperzero::{debug, info, println};
use flipperzero_rt::{entry, manifest};

// Define the FAP Manifest for this application
Expand All @@ -28,7 +28,10 @@ entry!(main);

// Entry point
fn main(_args: *mut u8) -> i32 {
info!("Hello, reader of the logs!");
println!("Hello, {}!", "Rust");

0
let ret_code = 0;
debug!("Return code: {}", ret_code);
ret_code
}
Loading