diff --git a/CHANGELOG.md b/CHANGELOG.md index f6d2e03c2..1066a1f92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] + - Additional colour changes as recommended by @iceman (@dunderhay) - Change type colour for `hf 14a` card types (@dunderhay) - Add colour to `hf mfdes` command (@dunderhay) - Add 'HINTS' command. Will turn off / on hint messages. Default mode is OFF. (@iceman1001) diff --git a/client/cmdhfmfdes.c b/client/cmdhfmfdes.c index 80f9ea250..698af4a2d 100644 --- a/client/cmdhfmfdes.c +++ b/client/cmdhfmfdes.c @@ -181,13 +181,13 @@ void getKeySettings(uint8_t *aid) { return; } - str = (resp.data.asBytes[3] & (1 << 3)) ? _GREEN_("YES") : _RED_("NO"); + str = (resp.data.asBytes[3] & (1 << 3)) ? _GREEN_("YES") : "NO"; PrintAndLogEx(SUCCESS, " [0x08] Configuration changeable : %s", str); - str = (resp.data.asBytes[3] & (1 << 2)) ? _RED_("NO") : _GREEN_("YES"); + str = (resp.data.asBytes[3] & (1 << 2)) ? "NO" : _GREEN_("YES"); PrintAndLogEx(SUCCESS, " [0x04] CMK required for create/delete : %s", str); - str = (resp.data.asBytes[3] & (1 << 1)) ? _RED_("NO") : _GREEN_("YES"); + str = (resp.data.asBytes[3] & (1 << 1)) ? "NO" : _GREEN_("YES"); PrintAndLogEx(SUCCESS, " [0x02] Directory list access with CMK : %s", str); - str = (resp.data.asBytes[3] & (1 << 0)) ? _GREEN_("YES") : _RED_("NO"); + str = (resp.data.asBytes[3] & (1 << 0)) ? _GREEN_("YES") : "NO"; PrintAndLogEx(SUCCESS, " [0x01] CMK is changeable : %s", str); { @@ -202,8 +202,8 @@ void getKeySettings(uint8_t *aid) { return; } PrintAndLogEx(SUCCESS, ""); - PrintAndLogEx(SUCCESS, " Max number of keys : %d", resp.data.asBytes[4]); - PrintAndLogEx(SUCCESS, " Master key Version : %d (0x%02x)", resp.data.asBytes[3], resp.data.asBytes[3]); + PrintAndLogEx(SUCCESS, " Max number of keys : " _YELLOW_("%d"), resp.data.asBytes[4]); + PrintAndLogEx(SUCCESS, " Master key Version : " _YELLOW_("%d (0x%02x)"), resp.data.asBytes[3], resp.data.asBytes[3]); PrintAndLogEx(INFO, " ----------------------------------------------------------"); {