Skip to content

Commit

Permalink
Merge pull request #591 from Cypherock/fix/inheritance/encryption-flo…
Browse files Browse the repository at this point in the history
…w-status

fix: Set proper flow status in ecnryption flow
  • Loading branch information
vrockz747 authored Nov 14, 2024
2 parents fcaeb36 + 80d541d commit e4ae44f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/inheritance_app/inheritance_decrypt_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ static void decryption_handle_errors() {
if (decryption_error.type == DECRYPTION_OK) {
return;
}
LOG_ERROR("inheritance_encrypt_data Error Code:%d Flow Tag:%d ",
LOG_ERROR("inheritance_decrypt_data Error Code:%d Flow Tag:%d ",
decryption_error.type,
decryption_error.flow);
decryption_error_type_e type = decryption_error.type;
Expand Down
2 changes: 2 additions & 0 deletions apps/inheritance_app/inheritance_encrypt_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ static bool encrypt_data(void) {
status = false;
break;
}
set_app_flow_status(INHERITANCE_ENCRYPT_DATA_STATUS_PIN_ENTERED);

if (!serialize_message_data()) {
status = false;
Expand All @@ -673,6 +674,7 @@ static bool encrypt_data(void) {
status = false;
break;
}
set_app_flow_status(INHERITANCE_ENCRYPT_DATA_STATUS_MESSAGE_ENCRYPTED);

if (!serialize_packet()) {
status = false;
Expand Down

0 comments on commit e4ae44f

Please sign in to comment.