fix release

This commit is contained in:
2025-10-31 14:15:47 -06:00
parent 05198c716d
commit 2226541813
2 changed files with 4 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ async fn watchdog_task(mut watchdog: Watchdog) {
ResetReason::Forced => "forced", ResetReason::Forced => "forced",
ResetReason::TimedOut => "timed out", ResetReason::TimedOut => "timed out",
}; };
#[cfg(feature = "debug")]
defmt::error!("Watchdog reset reason: {}", reason); defmt::error!("Watchdog reset reason: {}", reason);
} }
@@ -283,12 +284,14 @@ async fn setup_qmi_psram() {
Timer::after_millis(250).await; Timer::after_millis(250).await;
while tries > 1 { while tries > 1 {
let psram_qmi_size = init_psram_qmi(&embassy_rp::pac::QMI, &embassy_rp::pac::XIP_CTRL); let psram_qmi_size = init_psram_qmi(&embassy_rp::pac::QMI, &embassy_rp::pac::XIP_CTRL);
#[cfg(feature = "debug")]
defmt::info!("size: {}", psram_qmi_size); defmt::info!("size: {}", psram_qmi_size);
Timer::after_millis(100).await; Timer::after_millis(100).await;
if psram_qmi_size > 0 { if psram_qmi_size > 0 {
init_qmi_psram_heap(psram_qmi_size); init_qmi_psram_heap(psram_qmi_size);
return; return;
} }
#[cfg(feature = "debug")]
defmt::info!("failed to init qmi psram... trying again"); defmt::info!("failed to init qmi psram... trying again");
tries -= 1; tries -= 1;
} }

View File

@@ -526,6 +526,7 @@ pub fn init_psram_qmi(
let psram_size = detect_psram_qmi(qmi); let psram_size = detect_psram_qmi(qmi);
if psram_size == 0 { if psram_size == 0 {
#[cfg(feature = "debug")]
defmt::error!("qmi psram size 0"); defmt::error!("qmi psram size 0");
return 0; return 0;
} }