You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2026/10/09 08:15:32 UTC
(mynewt-nimble) branch master updated: apps: Adapt return value to nrfx changes
This is an automated email from the ASF dual-hosted git repository.
sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 52fb2a05e apps: Adapt return value to nrfx changes
52fb2a05e is described below
commit 52fb2a05eebffc87a85f760731579e9773ecd770
Author: Wiktor Kwiatkowski <wi...@codecoup.pl>
AuthorDate: Tue Sep 29 14:33:34 2026 +0200
apps: Adapt return value to nrfx changes
Since nrfx 4.0.0 release, nordic has changed function return
types from nrfx_err_t to standard int. This commit adapts to these
changes.
---
apps/blemesh_light/src/ws2812.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/blemesh_light/src/ws2812.c b/apps/blemesh_light/src/ws2812.c
index f27a182b9..dbd0ad3c0 100644
--- a/apps/blemesh_light/src/ws2812.c
+++ b/apps/blemesh_light/src/ws2812.c
@@ -102,11 +102,11 @@ pwm_handler_func(nrfx_pwm_evt_type_t event_type)
int
ws2812_init(void)
{
- nrfx_err_t err;
+ int err;
err = nrfx_pwm_init(&pwm, &pwm_config, pwm_handler_func);
- return err != NRFX_SUCCESS;
+ return err != 0;
}
int