From 8b35c38bb912ef59bd347db89e39f3c121c86ac3 Mon Sep 17 00:00:00 2001 From: z4yx Date: Thu, 31 Aug 2023 23:12:55 +0800 Subject: [PATCH] minor changes --- applets/ctap/ctap.c | 2 +- interfaces/USB/class/ctaphid/ctaphid.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applets/ctap/ctap.c b/applets/ctap/ctap.c index d567edc5..1e11ef6c 100644 --- a/applets/ctap/ctap.c +++ b/applets/ctap/ctap.c @@ -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; diff --git a/interfaces/USB/class/ctaphid/ctaphid.c b/interfaces/USB/class/ctaphid/ctaphid.c index c2162676..6d20fb16 100644 --- a/interfaces/USB/class/ctaphid/ctaphid.c +++ b/interfaces/USB/class/ctaphid/ctaphid.c @@ -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; }