FIFO typo fix

This commit is contained in:
muellerr committed 2020-02-03 18:03:10 +01:00
1 parent cd7e47ccbb
commit e7318995f4
1 file changed
+2 -2
+2 -2
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];