Skip to content

Commit 8e2ea72

Browse files
authored
Merge pull request #4 from vChavezB/alpha
fix osal timer and workflow
2 parents 0e359d1 + a8eee56 commit 8e2ea72

File tree

3 files changed

+6
-40
lines changed

3 files changed

+6
-40
lines changed

.github/workflows/demo_build.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/samples_build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
container: ghcr.io/zephyrproject-rtos/ci:v0.26.2
1515
env:
1616
CMAKE_PREFIX_PATH: /opt/toolchains
17-
ZEPHYR_VERSION: v3.6-branch
18-
# Board to use with renode
19-
BOARD: nrf52833dk_nrf52833
17+
strategy:
18+
matrix:
19+
board: ["esp32","nrf52833dk_nrf52833"]
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
@@ -28,7 +28,7 @@ jobs:
2828
west init
2929
west update -o=--depth=1 -n
3030
31-
- name: Build PoC
31+
- name: Build
3232
working-directory: /tmp/
3333
run: |
34-
west build $GITHUB_WORKSPACE/samples/read_pd -b $BOARD --build-dir $GITHUB_WORKSPACE/build
34+
west build $GITHUB_WORKSPACE/samples/read_pd -b ${{ matrix.board }} --build-dir $GITHUB_WORKSPACE/build

src/osal/osal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ os_timer_t * os_timer_create (
240240
bool oneshot)
241241
{
242242

243-
if (timer_cnt > TOTAL_TIMERS) {
243+
if (timer_cnt >= TOTAL_TIMERS) {
244244
return NULL;
245245
}
246246

0 commit comments

Comments
 (0)