lms: Use LimeSuite.h log level defines instead of hardcoded values
Change-Id: Iee693da1a0fa1db23deafa8d3845c04171e24799
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index 32c3d15..318df17 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -62,10 +62,10 @@
/* map lime specific log levels */
static const int lvl_map[5] = {
[0] = LOGL_FATAL,
- [1] = LOGL_ERROR,
- [2] = LOGL_NOTICE,
- [3] = LOGL_INFO,
- [4] = LOGL_DEBUG,
+ [LMS_LOG_ERROR] = LOGL_ERROR,
+ [LMS_LOG_WARNING] = LOGL_NOTICE,
+ [LMS_LOG_INFO] = LOGL_INFO,
+ [LMS_LOG_DEBUG] = LOGL_DEBUG,
};
/* protect against future higher log level values (lower importance) */
if ((unsigned int) lvl >= ARRAY_SIZE(lvl_map))