From 1d4117faf495a4504586595d67bf1034e32e52ce Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 21 Aug 2019 11:57:55 +0200 Subject: [PATCH] lms: Use define LMS_LOG_CRITICAL instead of value The define is available since v20.01.0 [1] [1] https://github.com/myriadrf/LimeSuite/pull/275 Change-Id: Ie5bb99a76580c5780a24f190682700c5e69b3d85 --- Transceiver52M/device/lms/LMSDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp index 7c220d21..356d950a 100644 --- a/Transceiver52M/device/lms/LMSDevice.cpp +++ b/Transceiver52M/device/lms/LMSDevice.cpp @@ -150,7 +150,7 @@ static void lms_log_callback(int lvl, const char *msg) { /* map lime specific log levels */ static const int lvl_map[5] = { - [0] = LOGL_FATAL, + [LMS_LOG_CRITICAL] = LOGL_FATAL, [LMS_LOG_ERROR] = LOGL_ERROR, [LMS_LOG_WARNING] = LOGL_NOTICE, [LMS_LOG_INFO] = LOGL_INFO,