1
0
forked from fsfw/fsfw

doc for fifo, device com if..

This commit is contained in:
2019-10-29 19:31:18 +01:00
parent b51536c772
commit 16af33a7bb
4 changed files with 66 additions and 3 deletions

View File

@ -21,7 +21,7 @@ public:
readIndex(0), writeIndex(0), currentSize(0) {
}
bool emtpy() {
bool empty() {
return (currentSize == 0);
}
@ -45,7 +45,7 @@ public:
}
ReturnValue_t retrieve(T *value) {
if (emtpy()) {
if (empty()) {
return EMPTY;
} else {
*value = data[readIndex];