diff --git a/src/handle_get_printable_amount.c b/src/handle_get_printable_amount.c index 5fa46cc0d6..ced188a310 100644 --- a/src/handle_get_printable_amount.c +++ b/src/handle_get_printable_amount.c @@ -7,7 +7,8 @@ #include #include -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)); diff --git a/src/handle_get_printable_amount.h b/src/handle_get_printable_amount.h index c3c03a9a9a..b817294045 100644 --- a/src/handle_get_printable_amount.h +++ b/src/handle_get_printable_amount.h @@ -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_ diff --git a/src/main.c b/src/main.c index 788e37474c..e7981fbb04 100644 --- a/src/main.c +++ b/src/main.c @@ -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); } } @@ -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