Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Aug 31, 2023
1 parent 07335cd commit 8b35c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion applets/ctap/ctap.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ int ctap_consistency_check(void) {
if (!dc.deleted) {
// delete the credential that had been written
DBG_MSG("Delete cred at %hhu\n", attr.index);
dc.deleted = 1;
dc.deleted = true;
if (write_file(DC_FILE, &dc, attr.index * (int) sizeof(CTAP_discoverable_credential),
sizeof(CTAP_discoverable_credential), 0) < 0)
return CTAP2_ERR_UNHANDLED_REQUEST;
Expand Down
2 changes: 1 addition & 1 deletion interfaces/USB/class/ctaphid/ctaphid.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ uint8_t CTAPHID_Loop(uint8_t wait_for_user) {
ret = LOOP_CANCEL;
break;
default:
DBG_MSG("Invalid CMD\n");
DBG_MSG("Invalid CMD 0x%hhx\n", channel.cmd);
CTAPHID_SendErrorResponse(channel.cid, ERR_INVALID_CMD);
break;
}
Expand Down

0 comments on commit 8b35c38

Please sign in to comment.