From 37be031f3ff3186af4a596cec119c58fbd5ad397 Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Sat, 13 Jun 2026 01:46:44 +0200 Subject: [PATCH] Fix --- .../Source/devices/CardputerKeyboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Devices/m5stack-cardputer-adv/Source/devices/CardputerKeyboard.cpp b/Devices/m5stack-cardputer-adv/Source/devices/CardputerKeyboard.cpp index 01a1aa3b..be1a4e62 100644 --- a/Devices/m5stack-cardputer-adv/Source/devices/CardputerKeyboard.cpp +++ b/Devices/m5stack-cardputer-adv/Source/devices/CardputerKeyboard.cpp @@ -1,5 +1,5 @@ #include "CardputerKeyboard.h" -#include +#include constexpr auto* TAG = "CardputerKeyb"; @@ -151,5 +151,5 @@ bool CardputerKeyboard::stopLvgl() { } bool CardputerKeyboard::isAttached() const { - return tt::hal::i2c::masterHasDeviceAtAddress(keypad->getPort(), keypad->getAddress(), 100); + return i2c_controller_has_device_at_address(keypad->getController(), keypad->getAddress(), 100) == ERROR_NONE; }