mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 12:27:14 +02:00
Revert "performance optimization in fifodepth, ensure memory is allocated by writing something in the beginning"
This reverts commit ab6f448e1f
.
This commit is contained in:
@ -56,7 +56,7 @@ void Fifo::CreateFifos(uint32_t fifoItemSize) {
|
||||
{ //push free addresses into fifoFree fifo
|
||||
char* buffer = memory;
|
||||
for (int i = 0; i < fifoDepth; ++i) {
|
||||
strcpy(buffer, "memory"); //ensures the memory is allocated
|
||||
//sprintf(buffer,"memory");
|
||||
FreeAddress(buffer);
|
||||
buffer += fifoItemSize;
|
||||
}
|
||||
|
Reference in New Issue
Block a user