From b393dae769bc833fb9330a42695f5c72a8cfacaa Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Sat, 5 Mar 2022 17:33:23 +0100 Subject: [PATCH] use Wire.end() --- src/i2c.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/i2c.cpp b/src/i2c.cpp index 9731e09d..0080dd5d 100644 --- a/src/i2c.cpp +++ b/src/i2c.cpp @@ -12,8 +12,7 @@ void i2c_init(void) { Wire.begin(); } -// void i2c_deinit(void) { Wire.end(); } -void i2c_deinit(void) { Wire.~TwoWire(); } +void i2c_deinit(void) { Wire.end(); } void i2c_scan(void) {