diff --git a/subsys/net/lib/lwm2m/lwm2m_engine.h b/subsys/net/lib/lwm2m/lwm2m_engine.h index 7a2cc7b9a9e1e9..251ba8a32c9a15 100644 --- a/subsys/net/lib/lwm2m/lwm2m_engine.h +++ b/subsys/net/lib/lwm2m/lwm2m_engine.h @@ -14,7 +14,7 @@ #include "lwm2m_registry.h" #define LWM2M_PROTOCOL_VERSION_MAJOR 1 -#if CONFIG_LWM2M_VERSION_1_1 +#if defined(CONFIG_LWM2M_VERSION_1_1) #define LWM2M_PROTOCOL_VERSION_MINOR 1 #else #define LWM2M_PROTOCOL_VERSION_MINOR 0