Skip to content

Commit

Permalink
Update clang-format action version.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoh committed Sep 16, 2024
1 parent 8490aa8 commit 9fc44cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
8 changes: 3 additions & 5 deletions lib/M5ez/src/M5ez.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions lib/M5ez/src/M5ez.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 9fc44cc

Please sign in to comment.