Skip to content

Commit fc4eefd

Browse files
committed
Use logging macro in the hello-rust example
1 parent 4a5c79d commit fc4eefd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/hello-rust/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Required for panic handler
88
extern crate flipperzero_rt;
99

10-
use flipperzero::println;
10+
use flipperzero::{info, println};
1111
use flipperzero_rt::{entry, manifest};
1212

1313
// Define the FAP Manifest for this application
@@ -24,6 +24,7 @@ entry!(main);
2424

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

2930
0

0 commit comments

Comments
 (0)