From 08b666a54897870710accd41ecd0271786ab49a0 Mon Sep 17 00:00:00 2001 From: Niklas Eiling Date: Mon, 8 Jan 2024 10:48:03 +0100 Subject: [PATCH] make I2c destructor call to I2c::reset explicit Signed-off-by: Niklas Eiling --- fpga/lib/ips/i2c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpga/lib/ips/i2c.cpp b/fpga/lib/ips/i2c.cpp index fd69c08e5..d966ef1be 100644 --- a/fpga/lib/ips/i2c.cpp +++ b/fpga/lib/ips/i2c.cpp @@ -20,7 +20,7 @@ I2c::I2c() xConfig(), hwLock(), configDone(false), initDone(false), polling(false), switchInstance(nullptr) {} -I2c::~I2c() { reset(); } +I2c::~I2c() { I2c::reset(); } static void SendHandler(I2c *i2c, __attribute__((unused)) int bytesSend) { i2c->transmitIntrs++;