From 679e5885c4553c62ceaaf06d1f0c8f26205f97c8 Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Thu, 9 Mar 2023 15:59:52 +0000 Subject: [PATCH] Update IO_HALDisplay.h Enable I2C address overlap check on HAL display. --- IO_HALDisplay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IO_HALDisplay.h b/IO_HALDisplay.h index 5ef9efc..f2ca3af 100644 --- a/IO_HALDisplay.h +++ b/IO_HALDisplay.h @@ -82,10 +82,10 @@ private: public: // Static function to handle "HALDisplay::create(...)" calls. static void create(I2CAddress i2cAddress, int width, int height) { - /* if (checkNoOverlap(i2cAddress)) */ new HALDisplay(0, i2cAddress, width, height); + if (checkNoOverlap(0, 0, i2cAddress)) new HALDisplay(0, i2cAddress, width, height); } static void create(uint8_t displayNo, I2CAddress i2cAddress, int width, int height) { - /* if (checkNoOverlap(i2cAddress)) */ new HALDisplay(displayNo, i2cAddress, width, height); + if (checkNoOverlap(0, 0, i2cAddress)) new HALDisplay(displayNo, i2cAddress, width, height); } protected: