espressif / esp-apple-homekit-adk

This is a port for Apple's Open Source HomeKit ADK
617 stars 64 forks source link

Enable logging for examples/Lightbulb #20

Closed cleobis closed 3 years ago

cleobis commented 3 years ago

Log messages in examples/Lightbulb/main/App.c using HAPLogInfo() are not displayed on the console. Log messages from inside the ADK are working correctly. It appears that HAP_LOG_LEVEL is not defined when compiling the example files and the default value of 0 from HAPLog.h is being used. Update examples/Lightbulb/main/CMakeLists.txt to set the log level based on the value from menuconfig.

This patch worked for me. I don't know enough about CMake to tell if this is the correct way to fix it.

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

shahpiyushv commented 3 years ago

@cleobis , thanks for this fix. It has now been merged.