fixed bug of crash when changing dr sometimes, latestdata was incorrectly inititalized

This commit is contained in:
Dhanya Maliakal
2016-12-02 08:55:07 +01:00
parent ce086fe79d
commit 28b0897dd7
4 changed files with 62 additions and 39 deletions

View File

@ -46,8 +46,8 @@ void UDPBaseImplementation::initializeMembers(){
dynamicRange = 16;
tengigaEnable = false;
fifoDepth = 0;
flippedData[0] = false;
flippedData[1] = false;
flippedData[0] = 0;
flippedData[1] = 0;
//***receiver parameters***
status = IDLE;
@ -221,7 +221,7 @@ void UDPBaseImplementation::configure(map<string, string> config_map){
void UDPBaseImplementation::setFlippedData(int axis, int enable){
FILE_LOG(logDEBUG) << __AT__ << " starting";
if(axis<0 || axis>1) return;
flippedData[axis] = enable;
flippedData[axis] = enable==0?0:1;
FILE_LOG(logINFO) << "Flipped Data: " << flippedData[0] << " , " << flippedData[1];
}