fixed missing precompiler flag in i2c for 328p variants #bugfix

This commit is contained in:
pyr0ball 2020-06-22 17:43:00 -07:00
parent 393c41b8dd
commit 456ebd14e8

View file

@ -97,7 +97,12 @@ void i2cInput(int bytesReceived) {
value = Wire1.read(); value = Wire1.read();
#endif #endif
} else { } else {
#ifdef __AVR_ATmega328PB__
value = value << 8 | Wire1.read(); value = value << 8 | Wire1.read();
#endif
#ifdef __AVR_ATmega328P__
value = value << 8 | Wire.read();
#endif
} }
} }