We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why in library max() function is used
word SegaController::getState() { if (max(millis() - _lastReadTime, 0) < SC_READ_DELAY_MS)
instead of
word SegaController::getState() { if ((millis() - _lastReadTime) < SC_READ_DELAY_MS) {
What is a gain of using max() function?
The text was updated successfully, but these errors were encountered:
Safer experience?
Sorry, something went wrong.
Safer how?
I think when I wrote this I just didn't realize it'd still work with the overflow wraparound.
No branches or pull requests
Why in library max() function is used
word SegaController::getState() { if (max(millis() - _lastReadTime, 0) < SC_READ_DELAY_MS)
instead of
word SegaController::getState() { if ((millis() - _lastReadTime) < SC_READ_DELAY_MS) {
What is a gain of using max() function?
The text was updated successfully, but these errors were encountered: