diff --git a/.github/workflows/github-to-gitee-sync.yml b/.github/workflows/github-to-gitee-sync.yml index 1de246e83..8b1378917 100644 --- a/.github/workflows/github-to-gitee-sync.yml +++ b/.github/workflows/github-to-gitee-sync.yml @@ -1,30 +1 @@ -name: GitHub to Gitee Sync -on: - push: - branches: - - main # 根据您的主分支名称可能需要调整 - workflow_dispatch: # 允许手动触发 - schedule: - - cron: '0 2 * * *' # 每天凌晨2点自动同步 - -jobs: - mirror-sync: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 # 获取完整的提交历史 - - - name: GitHub to Gitee Sync - uses: Yikun/hub-mirror-action@master - with: - src: github/OpenSiFli - dst: gitee/SiFli - dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} - dst_token: ${{ secrets.GITEE_TOKEN }} - static_list: "SiFli-SDK" # 指定要同步的仓库名 - force_update: true # 强制推送 - mappings: "SiFli-SDK=>sifli-sdk" # 源仓库名到目标仓库名的映射 - debug: true # 开启调试日志 \ No newline at end of file diff --git a/example/multimedia/lvgl/watch/src/gui_apps/clock/app_clock_main.c b/example/multimedia/lvgl/watch/src/gui_apps/clock/app_clock_main.c index fcacc2398..936633dff 100644 --- a/example/multimedia/lvgl/watch/src/gui_apps/clock/app_clock_main.c +++ b/example/multimedia/lvgl/watch/src/gui_apps/clock/app_clock_main.c @@ -618,9 +618,18 @@ static void on_pause(void) rt_list_for_each(pos, (&p_app_clock_main->list)) { - app_clock_desc_t *clk_desc; - clk_desc = rt_list_entry(pos, app_clock_desc_t, node); - app_clock_change_state(clk_desc, STATE_DEINIT); + if (i != last_active_clock) { + app_clock_desc_t *clk_desc; + clk_desc = rt_list_entry(pos, app_clock_desc_t, node); + + if (i != last_active_clock) + app_clock_change_state(clk_desc, STATE_DEINIT); + else + app_clock_change_state(clk_desc, STATE_PAUSED); + + i++; + } + i++; } }