Skip to content

Commit dfdb8bc

Browse files
committed
Create c-cpp.yml
1 parent 950559b commit dfdb8bc

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/c-cpp.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
BUILD_TYPE: Release
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
env:
18+
BUILD_TYPE: Debug
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Create build directory
24+
run: mkdir build
25+
26+
- name: Configure CMake
27+
run: cmake -B ${{github.workspace}}/build
28+
29+
- name: Build
30+
run: cmake --build ${{github.workspace}}/build

examples/thread_watchdog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void thread_work(int id)
4040

4141
if(remaining_time < WATCHDOG_TIMEOUT)
4242
{
43-
if(SCHEDULER_OK == flexitimer_delay(id, WATCHDOG_TIMEOUT))
43+
if(FLEXITIMER_OK == flexitimer_delay(id, WATCHDOG_TIMEOUT))
4444
{
4545
printf("Delayed thread %d.\n", id);
4646
}

0 commit comments

Comments
 (0)