From 9fc44cc31bd82fd3685f4da6f6e0821812ab192b Mon Sep 17 00:00:00 2001 From: Guo-Rong <5484552+gkoh@users.noreply.github.com> Date: Mon, 16 Sep 2024 19:48:39 +0930 Subject: [PATCH] Update clang-format action version. --- .github/workflows/main.yml | 4 ++-- lib/M5ez/src/M5ez.cpp | 8 +++----- lib/M5ez/src/M5ez.h | 4 +--- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ddae157..55b41fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,9 +17,9 @@ jobs: - uses: actions/checkout@v4 - name: Run clang-format style check - uses: jidicula/clang-format-action@v4.11.0 + uses: jidicula/clang-format-action@v4.13.0 with: - clang-format-version: '13' + clang-format-version: '17' check-path: '.' exclude-regex: 'lib/M5ez/examples' diff --git a/lib/M5ez/src/M5ez.cpp b/lib/M5ez/src/M5ez.cpp index 8c39ef0..46a699c 100644 --- a/lib/M5ez/src/M5ez.cpp +++ b/lib/M5ez/src/M5ez.cpp @@ -1059,8 +1059,8 @@ void M5ez::begin() { } void M5ez::yield() { - vTaskDelay(1); // allow lower priority tasks to run - ::yield(); // execute the Arduino yield in the root namespace + vTaskDelay(1); // allow lower priority tasks to run + ::yield(); // execute the Arduino yield in the root namespace M5.update(); for (uint8_t n = 0; n < _events.size(); n++) { if (millis() > _events[n].when) { @@ -1075,9 +1075,7 @@ void M5ez::yield() { } } -void M5ez::addEvent(uint16_t (*function)(void *context), - void *context, - uint32_t when /* = 1 */) { +void M5ez::addEvent(uint16_t (*function)(void *context), void *context, uint32_t when /* = 1 */) { event_t n; n.function = function; n.context = context; diff --git a/lib/M5ez/src/M5ez.h b/lib/M5ez/src/M5ez.h index f4a9010..35b7d0a 100644 --- a/lib/M5ez/src/M5ez.h +++ b/lib/M5ez/src/M5ez.h @@ -505,9 +505,7 @@ class M5ez { static void yield(); - static void addEvent(uint16_t (*function)(void *), - void *context = nullptr, - uint32_t when = 1); + static void addEvent(uint16_t (*function)(void *), void *context = nullptr, uint32_t when = 1); static void removeEvent(uint16_t (*function)(void *context)); static void redraw();