WIP: somethings wrong.. #19

Closed
muellerr wants to merge 808 commits from source/master into master
Showing only changes of commit 4695e87cdc - Show all commits

View File

@ -70,13 +70,8 @@ public:
} }
ReturnValue_t pop() { ReturnValue_t pop() {
if(empty()) { T value;
return EMPTY; return this->retrieve(&value);
} else {
readIndex = next(readIndex);
--currentSize;
return HasReturnvaluesIF::RETURN_OK;
}
} }
static const uint8_t INTERFACE_ID = CLASS_ID::FIFO_CLASS; static const uint8_t INTERFACE_ID = CLASS_ID::FIFO_CLASS;