forked from M-Labs/humpback-dds
src: replace hprint with logging
This commit is contained in:
parent
b954449ceb
commit
ecdb114679
|
@ -1,5 +1,4 @@
|
|||
use embedded_hal::blocking::spi::Transfer;
|
||||
use cortex_m_semihosting::hprintln;
|
||||
use core::assert;
|
||||
|
||||
use crate::Error;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use embedded_hal::blocking::spi::Transfer;
|
||||
use cortex_m_semihosting::hprintln;
|
||||
use crate::Error;
|
||||
use core::mem::size_of;
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use embedded_hal::blocking::spi::Transfer;
|
||||
use cortex_m_semihosting::hprintln;
|
||||
use crate::Error;
|
||||
use core::mem::size_of;
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ use core::{
|
|||
marker::PhantomData,
|
||||
};
|
||||
use cortex_m;
|
||||
use cortex_m_semihosting::hprintln;
|
||||
|
||||
#[macro_use]
|
||||
pub mod bitmask_macro;
|
||||
|
|
|
@ -6,8 +6,6 @@ use heapless::{consts, Vec};
|
|||
use stm32h7xx_hal::ethernet;
|
||||
use smoltcp as net;
|
||||
|
||||
use cortex_m_semihosting::hprintln;
|
||||
|
||||
use minimq::embedded_nal;
|
||||
|
||||
#[derive(Debug)]
|
||||
|
@ -61,7 +59,6 @@ impl<'a, 'b, 'c, 'n> NetworkStack<'a, 'b, 'c, 'n> {
|
|||
) {
|
||||
Ok(changed) => changed == false,
|
||||
Err(e) => {
|
||||
hprintln!("{:?}", e);
|
||||
true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,6 @@ use scpi::{
|
|||
// use scpi::suffix::{Frequency};
|
||||
|
||||
use embedded_hal::blocking::spi::Transfer;
|
||||
use cortex_m_semihosting::hprintln;
|
||||
|
||||
use crate::{
|
||||
Urukul,
|
||||
|
@ -271,7 +270,6 @@ impl<T:Device + UrukulTraits> Command<T> for ClockDivisionCommand {
|
|||
Some(token) => {
|
||||
match f32::try_from(token) {
|
||||
Ok(val) => {
|
||||
hprintln!("{}", val).unwrap();
|
||||
if val == 1.0 || val == 2.0 || val == 4.0 {
|
||||
val as u8
|
||||
} else {
|
||||
|
@ -279,7 +277,6 @@ impl<T:Device + UrukulTraits> Command<T> for ClockDivisionCommand {
|
|||
}
|
||||
},
|
||||
Err(_e) => {
|
||||
hprintln!("Checked numberic error").unwrap();
|
||||
return Err(ErrorCode::IllegalParameterValue.into())
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue