Skip to content

Commit

Permalink
Merge pull request #467 from LedgerHQ/jar-fix-osu-warning
Browse files Browse the repository at this point in the history
NBGL: fix syscall signature that generates a warning in the OSU
  • Loading branch information
jarevalo-ledger authored Nov 21, 2023
2 parents 6408413 + e210ff8 commit 7d2cf45
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib_nbgl/include/nbgl_screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ typedef struct PACKED__ nbgl_screen_s {
/**********************
* GLOBAL PROTOTYPES
**********************/
unsigned int nbgl_screen_reinit(void);
void nbgl_screen_reinit(void);

#ifdef HAVE_DISPLAY_FAST_MODE
void nbgl_screen_update_temperature(uint8_t temp_degrees);
Expand Down
4 changes: 2 additions & 2 deletions src/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ const nbgl_font_t *nbgl_font_getFont(unsigned int fontId)
return (const nbgl_font_t *) SVC_Call(SYSCALL_nbgl_get_font_ID, parameters);
}

unsigned int nbgl_screen_reinit(void)
void nbgl_screen_reinit(void)
{
unsigned int parameters[1];
parameters[0] = 0;
return SVC_Call(SYSCALL_nbgl_screen_reinit_ID, parameters);
SVC_Call(SYSCALL_nbgl_screen_reinit_ID, parameters);
}

#ifdef HAVE_DISPLAY_FAST_MODE
Expand Down
4 changes: 2 additions & 2 deletions unit-tests/lib_nbgl/test_nbgl_obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ uint8_t touch_exclude_borders(uint8_t excluded_borders)
return excluded_borders;
}

unsigned int nbgl_screen_reinit(void)
void nbgl_screen_reinit(void)
{
return 0;
return;
}

#ifdef HAVE_SE_TOUCH
Expand Down
4 changes: 2 additions & 2 deletions unit-tests/lib_nbgl/test_nbgl_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ uint8_t touch_exclude_borders(uint8_t excluded_borders)
return excluded_borders;
}

unsigned int nbgl_screen_reinit(void)
void nbgl_screen_reinit(void)
{
return 0;
return;
}

void nbgl_redrawObject(nbgl_obj_t *obj, nbgl_obj_t *prevObj, bool computePosition)
Expand Down

0 comments on commit 7d2cf45

Please sign in to comment.