Skip to content

Commit c0c0805

Browse files
techmccatusbalbin
authored andcommitted
spi example: replace log with utils::logger
1 parent 45073dc commit c0c0805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/spi-example.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use hal::{
1818
};
1919

2020
use cortex_m_rt::entry;
21-
use log::info;
2221
use stm32g4xx_hal as hal;
22+
use utils::logger::info;
2323

2424
#[macro_use]
2525
mod utils;
@@ -59,7 +59,7 @@ fn main() -> ! {
5959
cs.set_low();
6060
// transmit and receive at the same time
6161
spi.transfer(&mut received_msg, message).unwrap();
62-
info!("{received_msg:?}");
62+
info!("{:?}", &received_msg);
6363
cs.set_high();
6464

6565
delay_tim2.delay_ms(1000);

0 commit comments

Comments
 (0)