Skip to content

Commit

Permalink
NBGL: fix syscall signature, nothing is actually returned by the OS
Browse files Browse the repository at this point in the history
  • Loading branch information
jarevalo-ledger committed Nov 21, 2023
1 parent 6408413 commit e210ff8
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 e210ff8

Please sign in to comment.