src: replace hprint with logging

This commit is contained in:
occheung 2020-09-10 14:35:47 +08:00
parent b954449ceb
commit ecdb114679
6 changed files with 0 additions and 10 deletions

View File

@ -1,5 +1,4 @@
use embedded_hal::blocking::spi::Transfer;
use cortex_m_semihosting::hprintln;
use core::assert;
use crate::Error;

View File

@ -1,5 +1,4 @@
use embedded_hal::blocking::spi::Transfer;
use cortex_m_semihosting::hprintln;
use crate::Error;
use core::mem::size_of;

View File

@ -1,5 +1,4 @@
use embedded_hal::blocking::spi::Transfer;
use cortex_m_semihosting::hprintln;
use crate::Error;
use core::mem::size_of;

View File

@ -10,7 +10,6 @@ use core::{
marker::PhantomData,
};
use cortex_m;
use cortex_m_semihosting::hprintln;
#[macro_use]
pub mod bitmask_macro;

View File

@ -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
}
}

View File

@ -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())
},
}