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