Additional colour changes
This commit is contained in:
@@ -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...
|
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]
|
## [unreleased][unreleased]
|
||||||
|
- Additional colour changes as recommended by @iceman (@dunderhay)
|
||||||
- Change type colour for `hf 14a` card types (@dunderhay)
|
- Change type colour for `hf 14a` card types (@dunderhay)
|
||||||
- Add colour to `hf mfdes` command (@dunderhay)
|
- Add colour to `hf mfdes` command (@dunderhay)
|
||||||
- Add 'HINTS' command. Will turn off / on hint messages. Default mode is OFF. (@iceman1001)
|
- Add 'HINTS' command. Will turn off / on hint messages. Default mode is OFF. (@iceman1001)
|
||||||
|
|||||||
@@ -181,13 +181,13 @@ void getKeySettings(uint8_t *aid) {
|
|||||||
return;
|
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);
|
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);
|
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);
|
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);
|
PrintAndLogEx(SUCCESS, " [0x01] CMK is changeable : %s", str);
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -202,8 +202,8 @@ void getKeySettings(uint8_t *aid) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
PrintAndLogEx(SUCCESS, "");
|
PrintAndLogEx(SUCCESS, "");
|
||||||
PrintAndLogEx(SUCCESS, " Max number of keys : %d", resp.data.asBytes[4]);
|
PrintAndLogEx(SUCCESS, " Max number of keys : " _YELLOW_("%d"), resp.data.asBytes[4]);
|
||||||
PrintAndLogEx(SUCCESS, " Master key Version : %d (0x%02x)", resp.data.asBytes[3], resp.data.asBytes[3]);
|
PrintAndLogEx(SUCCESS, " Master key Version : " _YELLOW_("%d (0x%02x)"), resp.data.asBytes[3], resp.data.asBytes[3]);
|
||||||
PrintAndLogEx(INFO, " ----------------------------------------------------------");
|
PrintAndLogEx(INFO, " ----------------------------------------------------------");
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user