fixed missing precompiler flag in i2c for 328p variants #bugfix
This commit is contained in:
parent
393c41b8dd
commit
456ebd14e8
1 changed files with 5 additions and 0 deletions
|
|
@ -97,7 +97,12 @@ void i2cInput(int bytesReceived) {
|
|||
value = Wire1.read();
|
||||
#endif
|
||||
} else {
|
||||
#ifdef __AVR_ATmega328PB__
|
||||
value = value << 8 | Wire1.read();
|
||||
#endif
|
||||
#ifdef __AVR_ATmega328P__
|
||||
value = value << 8 | Wire.read();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue