From 22daa95b53e295a2678f51bdc7aada5d23c61130 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Wed, 2 Mar 2022 08:38:38 +0100 Subject: [PATCH] fix issue #858 --- src/i2c.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/i2c.cpp b/src/i2c.cpp index 530dee4c..538d1681 100644 --- a/src/i2c.cpp +++ b/src/i2c.cpp @@ -12,7 +12,8 @@ void i2c_init(void) { Wire.begin(); } -void i2c_deinit(void) { Wire.end(); } +//void i2c_deinit(void) { Wire.end(); } +void i2c_deinit(void) { Wire.~TwoWire(); } void i2c_scan(void) {