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