Redefine log level when CONF_WINC_DEBUG is enabled.

This commit is contained in:
iabdalkader 2017-03-09 20:22:00 +02:00
parent 096361c711
commit 8c0e1603eb

View File

@ -71,6 +71,8 @@
#define M2M_PRINT(...)
#if (CONF_WINC_DEBUG == 1)
#undef M2M_LOG_LEVEL
#define M2M_LOG_LEVEL M2M_LOG_DBG
#undef M2M_PRINT
#define M2M_PRINT(...) do{CONF_WINC_PRINTF(__VA_ARGS__);CONF_WINC_PRINTF("\r");}while(0)
#if (M2M_LOG_LEVEL >= M2M_LOG_ERROR)