Skip to content

Added debug logging support

Compare
Choose a tag to compare
@MightyPork MightyPork released this 12 Jan 09:14
· 21 commits to master since this release
b74bda7

This release adds a debug logging support using a TF_Error(format, ...) macro defined in TF_Config.h.
The macro is public and can be also used by higher level application logic relating to TinyFrame in error situations.

#define TF_Error(format, ...) printf("[TF] " format "\n", ##__VA_ARGS__)

Make sure to update your config file before installing this update.

If you don't want debug logging, use

#define TF_Error(format, ...)

(without anything to call)