Esp32_RTC_ZACUS #27

Closed
electron-rare wants to merge 2 commits from esp32_RTC_ZACUS into main
electron-rare commented 2026-02-23 20:34:55 +00:00 (Migrated from github.com)
No description provided.
chatgpt-codex-connector[bot] (Migrated from github.com) reviewed 2026-02-23 20:39:25 +00:00
chatgpt-codex-connector[bot] (Migrated from github.com) left a comment

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: efeacb79f8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `efeacb79f8` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](http://chatgpt.com/codex/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". </details>
@@ -148,3 +193,2 @@
ensureDialToneWav();
}
stopPlaybackFile();
startTask();
chatgpt-codex-connector[bot] (Migrated from github.com) commented 2026-02-23 20:39:25 +00:00

P1 Badge Allow SD mount retry after initial failure

ensureSdMounted() latches the first attempt result and never retries once sd_mount_attempted_ is true. If the first mount occurs while no card is inserted (or mount transiently fails), later PLAY attempts continue to fail permanently even after inserting a card, because the code always returns the cached false value until reboot.

Useful? React with 👍 / 👎.

**<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Allow SD mount retry after initial failure** `ensureSdMounted()` latches the first attempt result and never retries once `sd_mount_attempted_` is true. If the first mount occurs while no card is inserted (or mount transiently fails), later `PLAY` attempts continue to fail permanently even after inserting a card, because the code always returns the cached false value until reboot. Useful? React with 👍 / 👎.
chatgpt-codex-connector[bot] (Migrated from github.com) commented 2026-02-23 20:39:25 +00:00

P2 Badge Mount SD before replying to STORY_REFRESH_SD

STORY_REFRESH_SD currently just returns g_audio.isSdReady() and never triggers any mount/refresh logic. Since sd_ready_ stays false until playFile() calls ensureSdMounted(), this command reports failure on a normal boot even when a valid SD card is present, so clients cannot actually use it to refresh/check media availability before playback.

Useful? React with 👍 / 👎.

**<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Mount SD before replying to STORY_REFRESH_SD** `STORY_REFRESH_SD` currently just returns `g_audio.isSdReady()` and never triggers any mount/refresh logic. Since `sd_ready_` stays false until `playFile()` calls `ensureSdMounted()`, this command reports failure on a normal boot even when a valid SD card is present, so clients cannot actually use it to refresh/check media availability before playback. Useful? React with 👍 / 👎.

Pull request closed

Sign in to join this conversation.