Merge pull request #2007 from embassy-rs/unverbose
Remove a few ultra-verbose logs.
This commit is contained in:
commit
b012a67df7
3 changed files with 2 additions and 12 deletions
|
@ -222,7 +222,6 @@ fn IO_IRQ_QSPI() {
|
||||||
#[must_use = "futures do nothing unless you `.await` or poll them"]
|
#[must_use = "futures do nothing unless you `.await` or poll them"]
|
||||||
struct InputFuture<'a, T: Pin> {
|
struct InputFuture<'a, T: Pin> {
|
||||||
pin: PeripheralRef<'a, T>,
|
pin: PeripheralRef<'a, T>,
|
||||||
level: InterruptTrigger,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'d, T: Pin> InputFuture<'d, T> {
|
impl<'d, T: Pin> InputFuture<'d, T> {
|
||||||
|
@ -249,7 +248,6 @@ impl<'d, T: Pin> InputFuture<'d, T> {
|
||||||
.inte((pin.pin() / 8) as usize)
|
.inte((pin.pin() / 8) as usize)
|
||||||
.write_set(|w| match level {
|
.write_set(|w| match level {
|
||||||
InterruptTrigger::LevelHigh => {
|
InterruptTrigger::LevelHigh => {
|
||||||
trace!("InputFuture::new enable LevelHigh for pin {}", pin.pin());
|
|
||||||
w.set_level_high(pin_group, true);
|
w.set_level_high(pin_group, true);
|
||||||
}
|
}
|
||||||
InterruptTrigger::LevelLow => {
|
InterruptTrigger::LevelLow => {
|
||||||
|
@ -267,7 +265,7 @@ impl<'d, T: Pin> InputFuture<'d, T> {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Self { pin, level }
|
Self { pin }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -303,14 +301,8 @@ impl<'d, T: Pin> Future for InputFuture<'d, T> {
|
||||||
&& !inte.level_high(pin_group)
|
&& !inte.level_high(pin_group)
|
||||||
&& !inte.level_low(pin_group)
|
&& !inte.level_low(pin_group)
|
||||||
{
|
{
|
||||||
trace!(
|
|
||||||
"{:?} for pin {} was cleared, return Poll::Ready",
|
|
||||||
self.level,
|
|
||||||
self.pin.pin()
|
|
||||||
);
|
|
||||||
return Poll::Ready(());
|
return Poll::Ready(());
|
||||||
}
|
}
|
||||||
trace!("InputFuture::poll return Poll::Pending");
|
|
||||||
Poll::Pending
|
Poll::Pending
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -490,8 +490,6 @@ impl<T: Instance> interrupt::typelevel::Handler<T::Interrupt> for BufferedInterr
|
||||||
w.set_oeic(ris.oeris());
|
w.set_oeic(ris.oeris());
|
||||||
});
|
});
|
||||||
|
|
||||||
trace!("on_interrupt ris={:#X}", ris.0);
|
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
if ris.feris() {
|
if ris.feris() {
|
||||||
warn!("Framing error");
|
warn!("Framing error");
|
||||||
|
|
|
@ -54,7 +54,7 @@ async fn main(_spawner: Spawner) {
|
||||||
// Calibrate and normalize the measurement to get close to the dac_output_val
|
// Calibrate and normalize the measurement to get close to the dac_output_val
|
||||||
let measured_normalized = ((measured as i32 - offset as i32) / normalization_factor) as i16;
|
let measured_normalized = ((measured as i32 - offset as i32) / normalization_factor) as i16;
|
||||||
|
|
||||||
info!("value / measured: {} / {}", dac_output_val, measured_normalized);
|
//info!("value / measured: {} / {}", dac_output_val, measured_normalized);
|
||||||
|
|
||||||
// The deviations are quite enormous but that does not matter since this is only a quick test
|
// The deviations are quite enormous but that does not matter since this is only a quick test
|
||||||
assert!((dac_output_val as i16 - measured_normalized).abs() < 15);
|
assert!((dac_output_val as i16 - measured_normalized).abs() < 15);
|
||||||
|
|
Loading…
Reference in a new issue