This commit is contained in:
rejoe2 2023-11-16 11:33:53 +01:00 committed by GitHub
parent 1bc3a0f06f
commit eb15ce5dba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 114 additions and 73 deletions

View file

@ -85,6 +85,10 @@ class CommQueue {
mQueue[mRdPtr].attempts--;
}
void incrAttempt(void) {
mQueue[mRdPtr].attempts++;
}
void inc(uint8_t *ptr) {
if(++(*ptr) >= N)
*ptr = 0;