Merge pull request #637 from ourairquality/i2c-stdio
i2c: include stdio.h for debugging.
This commit is contained in:
commit
af52af782f
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
||||||
//#define I2C_DEBUG true
|
//#define I2C_DEBUG true
|
||||||
|
|
||||||
#ifdef I2C_DEBUG
|
#ifdef I2C_DEBUG
|
||||||
|
#include <stdio.h>
|
||||||
#define debug(fmt, ...) printf("%s: " fmt "\n", "I2C", ## __VA_ARGS__)
|
#define debug(fmt, ...) printf("%s: " fmt "\n", "I2C", ## __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define debug(fmt, ...)
|
#define debug(fmt, ...)
|
||||||
|
|
Loading…
Reference in a new issue