aqhome-react: finish new network reading code, improved debugging helper code.
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
#include <gwenhywfar/text.h>
|
||||
|
||||
|
||||
#define DEBUG_DRY_RUN 1 /* don't actually set value if "1" */
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* defines
|
||||
@@ -98,8 +100,13 @@ void _cbInputData(AQHREACT_UNIT *unit, AQHREACT_PORT *port, const AQHREACT_DATAO
|
||||
break;
|
||||
}
|
||||
if (msgOut) {
|
||||
#if DEBUG_DRY_RUN
|
||||
DBG_ERROR(NULL, "Would send data for value \"%s\"", sValueName);
|
||||
GWEN_Msg_free(msgOut);
|
||||
#else
|
||||
DBG_INFO(NULL, "Sending data for value \"%s\"", sValueName);
|
||||
GWEN_MsgEndpoint_AddSendMessage(brokerEndpoint, msgOut);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user