forked from M-Labs/kirdy
fix typos
This commit is contained in:
parent
60a79d1780
commit
e29898f8f8
@ -36,8 +36,6 @@ static mut ETH_DATA_BUFFER: [u8; 1024] = [0; 1024];
|
|||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
#[entry]
|
#[entry]
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
|
|
||||||
|
|
||||||
log_setup::init_log();
|
log_setup::init_log();
|
||||||
info!("Kirdy init");
|
info!("Kirdy init");
|
||||||
|
|
||||||
@ -76,8 +74,8 @@ fn main() -> ! {
|
|||||||
// https://github.com/iliekturtles/uom/blob/master/examples/si.rs
|
// https://github.com/iliekturtles/uom/blob/master/examples/si.rs
|
||||||
let volt_fmt = ElectricPotential::format_args(volt, Abbreviation);
|
let volt_fmt = ElectricPotential::format_args(volt, Abbreviation);
|
||||||
let amp_fmt = ElectricCurrent::format_args(ampere, Abbreviation);
|
let amp_fmt = ElectricCurrent::format_args(ampere, Abbreviation);
|
||||||
let mili_amp_fmt = ElectricCurrent::format_args(milliampere, Abbreviation);
|
let milli_amp_fmt = ElectricCurrent::format_args(milliampere, Abbreviation);
|
||||||
let mili_watt_fmt = Power::format_args(milliwatt, Abbreviation);
|
let milli_watt_fmt = Power::format_args(milliwatt, Abbreviation);
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
wd.feed();
|
wd.feed();
|
||||||
@ -90,7 +88,7 @@ fn main() -> ! {
|
|||||||
info!("curr_tec_i: {:?}", amp_fmt.with(thermostat.get_tec_i()));
|
info!("curr_tec_i: {:?}", amp_fmt.with(thermostat.get_tec_i()));
|
||||||
info!("curr_tec_v: {:?}", volt_fmt.with(thermostat.get_tec_v()));
|
info!("curr_tec_v: {:?}", volt_fmt.with(thermostat.get_tec_v()));
|
||||||
|
|
||||||
info!("curr_ld_drive_cuurent: {:?}", mili_amp_fmt.with(laser.get_ld_drive_current()));
|
info!("curr_ld_drive_cuurent: {:?}", milli_amp_fmt.with(laser.get_ld_drive_current()));
|
||||||
|
|
||||||
info!("pd_mon_v: {:?}", volt_fmt.with(laser.pd_mon_status().v));
|
info!("pd_mon_v: {:?}", volt_fmt.with(laser.pd_mon_status().v));
|
||||||
info!("power_excursion: {:?}", laser.pd_mon_status().pwr_excursion);
|
info!("power_excursion: {:?}", laser.pd_mon_status().pwr_excursion);
|
||||||
|
Loading…
Reference in New Issue
Block a user