arduino / arduino/ArduinoCore-avr
Wire.write ignores twi_transmit return values
Open
- Dominant language
- C
- Stars
- 1.5k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Failures from twi_transmit are ignored in Wire.write when sending in slave mode. This coupled with the fact that the function always returns the quantity given, prohibits check for failure to send data.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating Wire.write and twi_transmit in the Arduino AVR core and read the slave-mode send path. Determine how twi_transmit failures should affect the reported quantity, then verify that Wire.write no longer claims all data was sent when transmission fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100