Skip to content

Fix M261, i2c EEPROM, i2c Encoder for LPC#17678

Merged
thinkyhead merged 3 commits intoMarlinFirmware:bugfix-2.0.xfrom
randellhodges:lpc_m261
Apr 25, 2020
Merged

Fix M261, i2c EEPROM, i2c Encoder for LPC#17678
thinkyhead merged 3 commits intoMarlinFirmware:bugfix-2.0.xfrom
randellhodges:lpc_m261

Conversation

@randellhodges
Copy link
Contributor

Description

The LPC framework Wire implementation right shifts the I2C address in requestFrom and inside endTransmission.

The I2C_ADDRESS macro left shifts it before calling the wire methods that right shifts it.

It was already doing it inside beginTransmission (which just holds it until endTransmission was called). It just wasn't doing it for requestFrom.

Benefits

Makes M261 great again

Related Issues

#15754
#17677

@thinkyhead
Copy link
Member

I've also applied I2C_ADDRESS to other instances of requestFrom. The other affected features have probably not gotten any testing on LPC176x boards either.

@thinkyhead thinkyhead changed the title Fix M261 for LPC Fix M261, i2c EEPROM, i2c Encoder for LPC Apr 25, 2020
@thinkyhead thinkyhead merged commit b700b3c into MarlinFirmware:bugfix-2.0.x Apr 25, 2020
@randellhodges randellhodges deleted the lpc_m261 branch April 25, 2020 20:05
jmp0x0000 pushed a commit to jmp0x0000/Marlin that referenced this pull request Aug 7, 2020
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
njibhu pushed a commit to njibhu/Marlin that referenced this pull request Aug 24, 2020
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
HairingX pushed a commit to HairingX/Marlin that referenced this pull request Jun 16, 2021
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants