1
0
forked from fsfw/fsfw

fifo updates

This commit is contained in:
2020-09-01 12:53:53 +02:00
parent e949637271
commit b522b3c29c
4 changed files with 11 additions and 9 deletions

View File

@ -22,7 +22,7 @@ public:
// trying to pass the pointer of the uninitialized vector
// to the FIFOBase constructor directly lead to a super evil bug.
// So we do it like this now.
this->setData(fifoVector.data());
this->setContainer(fifoVector.data());
};
/**
@ -31,7 +31,7 @@ public:
*/
DynamicFIFO(const DynamicFIFO& other): FIFOBase<T>(other),
fifoVector(other.maxCapacity) {
this->setData(fifoVector.data());
this->setContainer(fifoVector.data());
}