}
TWCR = ((1<<TWINT) | (1<<TWEN) | (1<<TWSTO));
- while(!(TWCR & (1<<TWSTO))) {}
+ while(TWCR & (1<<TWSTO)) {}
-#if 1
- /* Timing problem... */
+#ifdef DEBUG
printf("I2C Data sent\n");
#endif
break;
default:
+#ifdef DEBUG
printf("I2C: Unimplemented status 0x%02x\n", TW_STATUS);
+#endif
TWCR_RESET;
break;
}