Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Dec 1, 2023
1 parent 0f9b9bc commit e544c29
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
3 changes: 2 additions & 1 deletion src/handle_get_printable_amount.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
#include <stdint.h>
#include <os.h>

void handle_get_printable_amount(get_printable_amount_parameters_t* params, chain_config_t* config) {
void handle_get_printable_amount(get_printable_amount_parameters_t* params,
chain_config_t* config) {
uint8_t decimals;
char ticker[MAX_TICKER_LEN];
memset(params->printable_amount, 0, sizeof(params->printable_amount));
Expand Down
2 changes: 1 addition & 1 deletion src/handle_get_printable_amount.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#include "chainConfig.h"

void handle_get_printable_amount(get_printable_amount_parameters_t* get_printable_amount_params,
chain_config_t* config);
chain_config_t* config);

#endif // _HANDLE_GET_PRINTABLE_AMOUNT_H_
36 changes: 18 additions & 18 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,26 +769,26 @@ __attribute__((noreturn)) void clone_main(libargs_t *args) {
}
libcall_params[2] = args->command;
libcall_params[4] = (unsigned int) args->get_printable_amount;
os_lib_call((unsigned int *)&libcall_params);
os_lib_call((unsigned int *) &libcall_params);
// ((unsigned int *) arg0)[0] = libcall_params[1];
os_lib_end();
} else {
// If the clone is started from the Dashboard on Stax, forward our icon to Ethereum
#ifdef HAVE_NBGL
const char app_name[] = APPNAME;
caller_app_t capp;
nbgl_icon_details_t icon_details;
uint8_t bitmap[sizeof(ICONBITMAP)];

memcpy(&icon_details, &ICONGLYPH, sizeof(ICONGLYPH));
memcpy(&bitmap, &ICONBITMAP, sizeof(bitmap));
icon_details.bitmap = (const uint8_t *) bitmap;
capp.name = app_name;
capp.icon = &icon_details;
libcall_params[4] = (unsigned int) &capp;
#else
libcall_params[4] = 0;
#endif // HAVE_NBGL
// If the clone is started from the Dashboard on Stax, forward our icon to Ethereum
#ifdef HAVE_NBGL
const char app_name[] = APPNAME;
caller_app_t capp;
nbgl_icon_details_t icon_details;
uint8_t bitmap[sizeof(ICONBITMAP)];

memcpy(&icon_details, &ICONGLYPH, sizeof(ICONGLYPH));
memcpy(&bitmap, &ICONBITMAP, sizeof(bitmap));
icon_details.bitmap = (const uint8_t *) bitmap;
capp.name = app_name;
capp.icon = &icon_details;
libcall_params[4] = (unsigned int) &capp;
#else
libcall_params[4] = 0;
#endif // HAVE_NBGL
os_lib_call((unsigned int *) &libcall_params);
}
}
Expand Down Expand Up @@ -832,7 +832,7 @@ int ethereum_main(libargs_t *args) {

__attribute__((section(".boot"))) int main(int arg0) {
#ifdef USE_LIB_ETHEREUM
clone_main((libargs_t *)arg0);
clone_main((libargs_t *) arg0);
#else
return ethereum_main((libargs_t *) arg0);
#endif
Expand Down

0 comments on commit e544c29

Please sign in to comment.