X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=modules%2Fcomm%2Fi2c%2Fi2c.c;fp=modules%2Fcomm%2Fi2c%2Fi2c.c;h=546cc3ce1de6607506c9315290411090b9a7c071;hp=81dae5cede1d3b7a82728cd2f72081802af8aa08;hb=762c639369a6d84aedb6599f17e53157df8c6daa;hpb=0f559f01ba81e53561b66ca5d23bb83e4c589bc8 diff --git a/modules/comm/i2c/i2c.c b/modules/comm/i2c/i2c.c index 81dae5c..546cc3c 100644 --- a/modules/comm/i2c/i2c.c +++ b/modules/comm/i2c/i2c.c @@ -538,9 +538,11 @@ void i2c_debug(void) * Interrupt routing for I2C. Refer to datasheets for more * informations. */ -#if !defined(TWI_vect) && defined(SIG_2WIRE_SERIAL) +#ifndef TWI_vect +#if defined(SIG_2WIRE_SERIAL) #define TWI_vect SIG_2WIRE_SERIAL #endif +#endif SIGNAL(TWI_vect) { uint8_t hard_status;