fix(ble): remove 450ms silence watchdog and trigger release on push
- Eliminate 450ms BLE_SILENCE_WATCHDOG_MS to prevent prematurely cutting off voice while held - Restore clean ADPCM audio pipeline state machine to eliminate decode desync / white noise - Update GitHub Actions release workflow: trigger on git push instead of daily cron - Update prebuilt firmware binaries and RemoteMapper-Flasher packages
This commit is contained in:
1 parent
df3592273b
commit
a58abf67d7
10 files changed
+6
-16
No files matched your search
@@ -1,9 +1,9 @@
|
||||
name: Daily Release Flasher
|
||||
name: Release Flasher
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# 每天北京时间凌晨 04:00 (UTC 20:00) 自动触发
|
||||
- cron: '0 20 * * *'
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag_name:
|
||||
@@ -43,7 +43,7 @@ jobs:
|
||||
- name: 同步发布至 GitHub Release 并替换附件 (Update Release Assets)
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TAG_NAME: ${{ inputs.tag_name || 'release' }}
|
||||
TAG_NAME: ${{ github.event.inputs.tag_name || 'release' }}
|
||||
run: |
|
||||
echo "=== 目标 Release Tag: $TAG_NAME ==="
|
||||
|
||||
@@ -66,6 +66,6 @@ jobs:
|
||||
echo "Release '$TAG_NAME' 不存在,正在创建全新 Release 并上传文件..."
|
||||
gh release create "$TAG_NAME" RemoteMapper-Flasher.7z RemoteMapper-Flasher.zip \
|
||||
--title "免环境一键刷机包 V1.0.0" \
|
||||
--notes "RemoteMapper-ESP32 每日最新自动构建免环境刷机包。"
|
||||
--notes "RemoteMapper-ESP32 最新构建免环境刷机包。"
|
||||
echo "=== 全新 Release 创建完成!==="
|
||||
fi
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -34,7 +34,6 @@ extern "C" {
|
||||
#define BLE_REMOTE_MAC_PREFIX "c0:5d:39"
|
||||
#define BLE_SCAN_INTERVAL_MS 100
|
||||
#define BLE_SCAN_WINDOW_MS 80
|
||||
#define BLE_SILENCE_WATCHDOG_MS 450 // Voice key release watchdog timeout (ms)
|
||||
#define BLE_KEEP_ALIVE_INTERVAL 2000 // MIC_EXTEND interval during active voice (ms)
|
||||
|
||||
// ATVV GATT UUIDs (128-bit)
|
||||
|
||||
@@ -655,15 +655,6 @@ void ble_remote_task(void) {
|
||||
start_scan();
|
||||
}
|
||||
}
|
||||
|
||||
// 4. Audio silence watchdog (if voice key released packet dropped over BLE)
|
||||
if (s_ble_state == BLE_STATE_TALKING) {
|
||||
if (now - s_last_audio_ms > BLE_SILENCE_WATCHDOG_MS) {
|
||||
app_log("ATVV", "Silence watchdog expired -> force stopping speech");
|
||||
s_ble_state = BLE_STATE_CONNECTED;
|
||||
key_engine_feed_key(&g_key_engine, MI_KEY_VOICE, false, now);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ble_remote_state_t ble_remote_get_state(void) {
|
||||
|
||||
Reference in new issue
Block a user