Skip to content

Commit

Permalink
CI: deprecated actions update
Browse files Browse the repository at this point in the history
  • Loading branch information
pstolarz committed Jan 6, 2023
1 parent 4579da5 commit a4362ae
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ard-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- CoopWaitNotify
- CoopYieldAfter
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build
run: |
if [[ "${{ matrix.example }}" = "CoopIdle" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
ut:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Unit tests
run: make -C extras/test
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020-2022 Piotr Stolarz
Copyright (c) 2020-2023 Piotr Stolarz
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine/)

# CoopThreads
[![Arduino builds](https://github.com/pstolarz/CoopThreads/workflows/Arduino%20builds/badge.svg?branch=master)](https://github.com/pstolarz/CoopThreads/actions/workflows/ard-builds.yml)
[![Tests status](https://github.com/pstolarz/CoopThreads/actions/workflows/ut.yml/badge.svg?branch=master)](https://github.com/pstolarz/CoopThreads/actions/workflows/ut.yml)
Expand Down
3 changes: 1 addition & 2 deletions src/coop_threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,7 @@ coop_error_t coop_sched_thread(coop_thrd_proc_t proc, const char *name,
{
if (!proc) {
return COOP_ERR_INV_ARG;
} else
if (sched.busy_n >= CONFIG_MAX_THREADS) {
} else if (sched.busy_n >= CONFIG_MAX_THREADS) {
return COOP_ERR_LIMIT;
}

Expand Down

0 comments on commit a4362ae

Please sign in to comment.