Update some outstanding questions

This commit is contained in:
ceekdee 2022-09-28 14:27:34 -05:00
parent a89a0c2f12
commit 526e90d3f3
2 changed files with 10 additions and 10 deletions

View File

@ -511,22 +511,23 @@ where
cad_activity_detected: Option<&mut bool>,
) -> Result<(), RadioError<BUS>> {
loop {
info!("process_irq loop entered"); // debug ???
trace!("process_irq loop entered");
let de = self.sub_get_device_errors().await?;
info!("device_errors: rc_64khz_calibration = {}, rc_13mhz_calibration = {}, pll_calibration = {}, adc_calibration = {}, image_calibration = {}, xosc_start = {}, pll_lock = {}, pa_ramp = {}",
trace!("device_errors: rc_64khz_calibration = {}, rc_13mhz_calibration = {}, pll_calibration = {}, adc_calibration = {}, image_calibration = {}, xosc_start = {}, pll_lock = {}, pa_ramp = {}",
de.rc_64khz_calibration, de.rc_13mhz_calibration, de.pll_calibration, de.adc_calibration, de.image_calibration, de.xosc_start, de.pll_lock, de.pa_ramp);
let st = self.sub_get_status().await?;
info!(
trace!(
"radio status: cmd_status: {:x}, chip_mode: {:x}",
st.cmd_status, st.chip_mode
st.cmd_status,
st.chip_mode
);
self.dio1.wait_for_high().await.map_err(|_| DIO1)?;
let operating_mode = self.brd_get_operating_mode();
let irq_flags = self.sub_get_irq_status().await?;
self.sub_clear_irq_status(irq_flags).await?;
info!("process_irq DIO1 satisfied: irq_flags = {:x}", irq_flags); // debug ???
trace!("process_irq DIO1 satisfied: irq_flags = {:x}", irq_flags);
// check for errors and unexpected interrupt masks (based on operation mode)
if (irq_flags & IrqMask::HeaderError.value()) == IrqMask::HeaderError.value() {
@ -568,13 +569,12 @@ where
return Err(RadioError::CADUnexpected);
}
// debug ???
if (irq_flags & IrqMask::HeaderValid.value()) == IrqMask::HeaderValid.value() {
info!("HeaderValid");
trace!("HeaderValid");
} else if (irq_flags & IrqMask::PreambleDetected.value()) == IrqMask::PreambleDetected.value() {
info!("PreambleDetected");
trace!("PreambleDetected");
} else if (irq_flags & IrqMask::SyncwordValid.value()) == IrqMask::SyncwordValid.value() {
info!("SyncwordValid");
trace!("SyncwordValid");
}
// handle completions

View File

@ -44,7 +44,7 @@ async fn temperature_task(
let value = temperature.read().await;
let mut temperature_val = value.to_num::<i32>();
info!("Temperature: {}", temperature_val); // debug ???
info!("Temperature: {}", temperature_val);
// only report every 2 degree Celsius drops, from 9 through 5, but starting at 3 always report