1
0
forked from fsfw/fsfw

added additional calls

This commit is contained in:
2020-08-04 11:47:47 +02:00
parent 6b475792a4
commit 4dcfa5125e
4 changed files with 21 additions and 3 deletions

View File

@ -39,7 +39,7 @@ ReturnValue_t SimpleRingBuffer::getFreeElement(uint8_t **writePointer,
if((amount - amountTillWrap + excessBytes) > maxExcessBytes) {
return HasReturnvaluesIF::RETURN_FAILED;
}
excessBytes += amount - amountTillWrap;
excessBytes = amount - amountTillWrap;
}
*writePointer = &buffer[write];
incrementWrite(amount);