From 9f22c8008176b734b55602f15b62fe7e907f7b81 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Mon, 27 Jan 2020 19:59:18 +0100 Subject: [PATCH] Revert "performance optimization in fifodepth, ensure memory is allocated by writing something in the beginning" This reverts commit ab6f448e1f1f14e4a6ee2bd90922c290a1c7a28a. --- slsReceiverSoftware/src/Fifo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsReceiverSoftware/src/Fifo.cpp b/slsReceiverSoftware/src/Fifo.cpp index 98799168b..bb37de5f5 100755 --- a/slsReceiverSoftware/src/Fifo.cpp +++ b/slsReceiverSoftware/src/Fifo.cpp @@ -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; }