i2c: include stdio.h for debugging.

This commit is contained in:
Our Air Quality 2018-06-08 11:06:35 +10:00
parent d9c5f2eaa2
commit b4271792b9

View file

@ -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, ...)