Merge pull request #637 from ourairquality/i2c-stdio

i2c: include stdio.h for debugging.
This commit is contained in:
Ruslan V. Uss 2018-06-08 14:41:42 +05:00 committed by GitHub
commit af52af782f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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