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