mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2025-12-27 07:45:28 +00:00
fix release
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user