This is an automated email from the ASF dual-hosted git repository. pussuw pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push: new ecbd1e964 examples/camera: Initialize g_nximage semaphore with SEM_INITIALIZER ecbd1e964 is described below commit ecbd1e964a988e0ea4c1585e26f7ec5a5d994888 Author: Jukka Laitinen <jukka.laiti...@tii.ae> AuthorDate: Wed Apr 16 10:30:57 2025 +0300 examples/camera: Initialize g_nximage semaphore with SEM_INITIALIZER Use SEM_INITIALIZER macro instead of direct { 0 } Signed-off-by: Jukka Laitinen <jukka.laiti...@tii.ae> --- examples/camera/camera_bkgd.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/camera/camera_bkgd.c b/examples/camera/camera_bkgd.c index cdd6653ff..c53b11ab8 100644 --- a/examples/camera/camera_bkgd.c +++ b/examples/camera/camera_bkgd.c @@ -97,13 +97,13 @@ static const struct nx_callback_s g_nximagecb = static struct nximage_data_s g_nximage = { - NULL, /* hnx */ - NULL, /* hbkgd */ - false, /* connected */ - 0, /* xres */ - 0, /* yres */ - false, /* havpos */ - { 0 }, /* sem */ + NULL, /* hnx */ + NULL, /* hbkgd */ + false, /* connected */ + 0, /* xres */ + 0, /* yres */ + false, /* havpos */ + SEM_INITIALIZER(0), /* sem */ }; /****************************************************************************