Skip to content

Commit 3a2d272

Browse files
committed
hrtim test does not need defmt
1 parent ec801f0 commit 3a2d272

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/nucleo-g474_hrtim.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#[path = "../examples/utils/mod.rs"]
77
mod utils;
88

9+
use utils::logger::debug;
10+
911
mod common;
1012

1113
use common::test_pwm;
@@ -74,7 +76,7 @@ mod tests {
7476
let t_max_deviation = 2.micros();
7577
test_pwm(&timer, pin_num, t_lo, t_hi, t_max_deviation, 10);
7678

77-
delay.delay_ms(20); // Give the host some time to read defmt messages
79+
delay.delay_ms(20); // Give the host some time to read logging messages
7880
}
7981

8082
#[test]
@@ -101,7 +103,7 @@ mod tests {
101103

102104
#[allow(non_snake_case)]
103105
fn setup_rcc_120MHz(pwr: stm32::PWR, rcc: stm32::RCC) -> Rcc {
104-
defmt::info!("rcc");
106+
debug!("rcc");
105107
// Set system frequency to 16MHz * 15/1/2 = 120MHz
106108
// This would lead to HrTim running at 120MHz * 32 = 3.84...
107109
let pwr = pwr.constrain().freeze();
@@ -231,6 +233,6 @@ fn deadtime_test(deadtime_rising_us: u32, deadtime_falling_us: u32) {
231233

232234
let p = idr.idr(pin_num).is_high();
233235
let compl_p = idr.idr(complementary_pin_num).is_high();
234-
defmt::assert!(!(p && compl_p), "Both outputs active at the same time");
236+
assert!(!(p && compl_p), "Both outputs active at the same time");
235237
}
236238
}

0 commit comments

Comments
 (0)