aboutsummaryrefslogtreecommitdiff
path: root/device.cc
diff options
context:
space:
mode:
Diffstat (limited to 'device.cc')
-rw-r--r--device.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/device.cc b/device.cc
index 20bb0c6..1204c1e 100644
--- a/device.cc
+++ b/device.cc
@@ -350,6 +350,10 @@ LibremKey::LibremKey():
#include <sstream>
#define p(x) ss << #x << " " << x << ", ";
std::string Device::ErrorCounters::get_as_string() {
+#ifdef NO_LOG
+ return "";
+#endif
+
std::stringstream ss;
p(total_comm_runs);
p(communication_successful);