File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 20
20
run : bash ci/actions_install.sh
21
21
22
22
- name : test platforms
23
- run : python3 ci/build_platform.py main_platforms zero
23
+ run : python3 ci/build_platform.py main_platforms zero feather32u4
24
24
25
25
- name : clang
26
26
run : python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r .
Original file line number Diff line number Diff line change @@ -39,12 +39,17 @@ bool Adafruit_I2CDevice::begin(bool addr_detect) {
39
39
* @brief De-initialize device, turn off the Wire interface
40
40
*/
41
41
void Adafruit_I2CDevice::end (void ) {
42
- #ifndef ESP8266
43
- // ESP8266 does not implement Wire::end()
42
+ // Not all port implement Wire::end(), such as
43
+ // - ESP8266
44
+ // - AVR core without WIRE_HAS_END
45
+ // - ESP32: end() is implemented since 2.0.1 which is latest at the moment.
46
+ // Temporarily disable for now to give time for user to update.
47
+ #if !(defined(ESP8266) || \
48
+ (defined (ARDUINO_ARCH_AVR) && !defined (WIRE_HAS_END)) || \
49
+ defined (ARDUINO_ARCH_ESP32))
44
50
_wire->end ();
45
- #endif
46
-
47
51
_begun = false ;
52
+ #endif
48
53
}
49
54
50
55
/* !
You can’t perform that action at this time.
0 commit comments