From a18f71613a14df5f3d71080748c17409f1c2ce23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20SAILLANT?= Date: Wed, 26 Mar 2025 18:10:57 +0100 Subject: [PATCH] internal pool delay, dont in main code --- ADB.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ADB.cpp b/ADB.cpp index 2d349bc..1e7728c 100644 --- a/ADB.cpp +++ b/ADB.cpp @@ -256,7 +256,7 @@ bool ADBDevices::deviceUpdateRegister3(uint8_t addr, adb_data new if (*error) return false; // Attente entre les opérations - delay(POLL_DELAY); + delay(ADBProtocol::POLL_DELAY); // Application du masque pour ne modifier que les bits souhaités reg3.raw = (reg3.raw & ~mask) | (newReg3.raw & mask); @@ -267,7 +267,7 @@ bool ADBDevices::deviceUpdateRegister3(uint8_t addr, adb_data new adb.writeDataPacket(reg3.raw, 16); // Attente entre les opérations - delay(POLL_DELAY); + delay(ADBProtocol::POLL_DELAY); // Vérification que la mise à jour a été prise en compte reg3 = deviceReadRegister3(addr, error);