From 080b88a018e0cca01d3e89ef264173c332ab4eeb Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 28 Jul 2020 11:50:38 +0200 Subject: Add missing macro for the NO_LOG feature switch, and cut other strings expl. --- command_id.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'command_id.cc') diff --git a/command_id.cc b/command_id.cc index 9a329bc..90f300f 100644 --- a/command_id.cc +++ b/command_id.cc @@ -26,6 +26,9 @@ namespace nitrokey { namespace proto { const char *commandid_to_string(CommandID id) { +#ifdef NO_LOG + return ""; +#endif switch (id) { case CommandID::GET_STATUS: return "GET_STATUS"; -- cgit v1.2.1