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 efeae74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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

0 comments on commit efeae74

Please sign in to comment.