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; }