Merge pull request #431 from LedgerHQ/sdk/update-submodule
Update the SDK submodule
This commit is contained in:
Submodule ethereum-plugin-sdk updated: a4b971f679...b9777e7a81
@@ -78,13 +78,11 @@ void handle_swap_sign_transaction(chain_config_t* config) {
|
||||
USB_power(1);
|
||||
// ui_idle();
|
||||
PRINTF("USB power ON/OFF\n");
|
||||
#ifdef TARGET_NANOX
|
||||
#ifdef HAVE_BLE
|
||||
// grab the current plane mode setting
|
||||
G_io_app.plane_mode = os_setting_get(OS_SETTING_PLANEMODE, NULL, 0);
|
||||
#endif // TARGET_NANOX
|
||||
#ifdef HAVE_BLE
|
||||
BLE_power(0, NULL);
|
||||
BLE_power(1, "Nano X");
|
||||
BLE_power(1, NULL);
|
||||
#endif // HAVE_BLE
|
||||
app_main();
|
||||
}
|
||||
|
||||
10
src/main.c
10
src/main.c
@@ -69,7 +69,9 @@ bolos_ux_params_t G_ux_params;
|
||||
|
||||
const internalStorage_t N_storage_real;
|
||||
|
||||
#ifdef HAVE_NBGL
|
||||
caller_app_t *caller_app = NULL;
|
||||
#endif
|
||||
chain_config_t *chainConfig = NULL;
|
||||
|
||||
void reset_app_context() {
|
||||
@@ -957,6 +959,7 @@ void coin_main(libargs_t *args) {
|
||||
if (args->chain_config != NULL) {
|
||||
chainConfig = args->chain_config;
|
||||
}
|
||||
#ifdef HAVE_NBGL
|
||||
if ((caller_app = args->caller_app) != NULL) {
|
||||
if (chainConfig != NULL) {
|
||||
caller_app->type = CALLER_TYPE_CLONE;
|
||||
@@ -964,6 +967,7 @@ void coin_main(libargs_t *args) {
|
||||
caller_app->type = CALLER_TYPE_PLUGIN;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
if (chainConfig == NULL) {
|
||||
init_coin_config(&config);
|
||||
@@ -985,10 +989,10 @@ void coin_main(libargs_t *args) {
|
||||
TRY {
|
||||
io_seproxyhal_init();
|
||||
|
||||
#ifdef TARGET_NANOX
|
||||
#ifdef HAVE_BLE
|
||||
// grab the current plane mode setting
|
||||
G_io_app.plane_mode = os_setting_get(OS_SETTING_PLANEMODE, NULL, 0);
|
||||
#endif // TARGET_NANOX
|
||||
#endif // HAVE_BLE
|
||||
|
||||
if (!N_storage.initialized) {
|
||||
internalStorage_t storage;
|
||||
@@ -1016,7 +1020,7 @@ void coin_main(libargs_t *args) {
|
||||
|
||||
#ifdef HAVE_BLE
|
||||
BLE_power(0, NULL);
|
||||
BLE_power(1, "Nano X");
|
||||
BLE_power(1, NULL);
|
||||
#endif // HAVE_BLE
|
||||
|
||||
#ifdef HAVE_DOMAIN_NAME
|
||||
|
||||
Reference in New Issue
Block a user