From 0f224afac835e5449b2ec392faee290d1259e085 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Tue, 5 Apr 2016 21:25:28 +0200 Subject: [PATCH] I2C: warn when trying to use untested code. No code change. --- i2c.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/i2c.c b/i2c.c index d1b9355..c9acacb 100644 --- a/i2c.c +++ b/i2c.c @@ -36,6 +36,12 @@ #error Cant be I2C master and slave at the same time. #endif +#if defined I2C_SLAVE_MODE || defined I2C_READ_SUPPORT || \ + defined I2C_EEPROM_SUPPORT + #warning These portions of the code are untested and need work. +#endif + + #ifdef I2C_SLAVE_MODE #define I2C_MODE 1 #else