internal pool delay, dont in main code

This commit is contained in:
Clément SAILLANT
2025-03-26 18:10:57 +01:00
parent b3a104781e
commit a18f71613a
+2 -2
View File
@@ -256,7 +256,7 @@ bool ADBDevices::deviceUpdateRegister3(uint8_t addr, adb_data<adb_register3> 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<adb_register3> 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);