summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorceekdee <taigatensor@gmail.com>2022-09-28 14:27:34 -0500
committerceekdee <taigatensor@gmail.com>2022-09-28 14:27:34 -0500
commit526e90d3f3b986fedc55ec421178b7b2ec954abf (patch)
treebffc8288f5df367b300c3aba9bbf8fe7cab641cc
parenta89a0c2f122759a7e743e75152f7af7f67b4387b (diff)
downloadembassy-526e90d3f3b986fedc55ec421178b7b2ec954abf.zip
Update some outstanding questions
-rw-r--r--embassy-lora/src/sx126x/sx126x_lora/mod.rs18
-rw-r--r--examples/nrf/src/bin/lora_p2p_sense.rs2
2 files changed, 10 insertions, 10 deletions
diff --git a/embassy-lora/src/sx126x/sx126x_lora/mod.rs b/embassy-lora/src/sx126x/sx126x_lora/mod.rs
index 02f5f83a..53fbde74 100644
--- a/embassy-lora/src/sx126x/sx126x_lora/mod.rs
+++ b/embassy-lora/src/sx126x/sx126x_lora/mod.rs
@@ -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
diff --git a/examples/nrf/src/bin/lora_p2p_sense.rs b/examples/nrf/src/bin/lora_p2p_sense.rs
index 57aaea66..3c6bb876 100644
--- a/examples/nrf/src/bin/lora_p2p_sense.rs
+++ b/examples/nrf/src/bin/lora_p2p_sense.rs
@@ -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