Skip to content

Commit

Permalink
Revert delay position. Increment to shortwait
Browse files Browse the repository at this point in the history
  • Loading branch information
oscgonfer committed Oct 28, 2024
1 parent 2c3c57a commit 079e7b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sam/src/SckAux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1690,14 +1690,13 @@ bool Atlas::sendCommand(char* command)
auxWire.requestFrom(deviceAddress, 1, true);
uint8_t confirmed = auxWire.read();
auxWire.endTransmission();
delay(shortWait);

if (confirmed == 1) {
lastCommandSent = millis();
return true;
}

// delay(300);
delay(shortWait);
}
return false;
}
Expand Down

0 comments on commit 079e7b9

Please sign in to comment.