adafruit/Adafruit_Arduino_Boards

Bundled Wire library is outdated relative to upstream Arduino core

markmentovai opened this issue · 0 comments

The Wire library bundled in adafruit-avr-1.4.15.tar.bz2 that’s sourced in this repository is outdated relative to the upstream Arduino core. This is a problem because, although the Adafruit AVR core delegates most things to the upstream Arduino core, the outdated Adafruit copy of the Wire library shadows the upstream’s, rendering upstream improvements invisible when targeting an Adafruit board. For example, the timeout-oriented additions from upstream aren’t available when targeting an Adafruit board. The upstream code has also received numerous bugfixes since the Adafruit fork was established.

The Adafruit Wire fork was created at c437230 (2016-01-15) to add ATtiny support according to the Wire interface presumably absent from upstream. This appears to have been forked from arduino/ArduinoCore-avr da5830c4bf62 (2015-03-26). Quite a number of changes have been made to upstream Wire since then, but aside from arduino/ArduinoCore-avr eab6601ebc4ff of 2015-08-25 and arduino/ArduinoCore-avr 7b2f6fc02881 of 2016-03-09 (both at 7157b88, 2021-11-25), it doesn’t look like any of the improvements have been brought to the Adafruit fork.

Can the local forked copy of the Wire library be synced with the updated upstream version, and ideally be kept up to date with the upstream over time?