Added a global apdu response code variable

This commit is contained in:
Alexandre Paillier
2022-07-04 15:05:07 +02:00
parent 01179730a1
commit 12b97d91db
2 changed files with 13 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ strings_t strings;
cx_sha3_t global_sha3;
uint8_t appState;
uint16_t apdu_response_code;
bool called_from_swap;
pluginType_t pluginType;
#ifdef HAVE_STARKWARE
@@ -70,7 +71,7 @@ const internalStorage_t N_storage_real;
chain_config_t *chainConfig;
void reset_app_context() {
// PRINTF("!!RESET_APP_CONTEXT\n");
//PRINTF("!!RESET_APP_CONTEXT\n");
appState = APP_STATE_IDLE;
called_from_swap = false;
pluginType = OLD_INTERNAL;