From 2db8f90ae62a18102ee95e8b55a6293a12d8ccdb Mon Sep 17 00:00:00 2001 From: splitPoleDAQ Date: Wed, 17 May 2023 17:12:35 -0400 Subject: [PATCH] default load file is Digi-XXX_[DPP-Type].bin --- FSUDAQ.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FSUDAQ.cpp b/FSUDAQ.cpp index 921e9ea..ad08023 100644 --- a/FSUDAQ.cpp +++ b/FSUDAQ.cpp @@ -355,7 +355,7 @@ void MainWindow::OpenDigitizers(){ //digi[i]->Reset(); ///============== load settings - QString fileName = rawDataPath + "/Digi-" + QString::number(digi[i]->GetSerialNumber()) + ".bin"; //TODO add DPP Type in File Name + QString fileName = rawDataPath + "/Digi-" + QString::number(digi[i]->GetSerialNumber()) + "_" + QString::fromStdString(digi[i]->GetData()->DPPTypeStr) + ".bin"; QFile file(fileName); if( !file.open(QIODevice::Text | QIODevice::ReadOnly) ) { @@ -375,7 +375,7 @@ void MainWindow::OpenDigitizers(){ LogMsg("Found " + fileName + " for digitizer settings."); if( digi[i]->LoadSettingBinaryToMemory(fileName.toStdString().c_str()) == 0 ){ - LogMsg("Loaded settings file " + fileName + " for Digi-" + QString::number(digi[i]->GetSerialNumber())); + LogMsg("Loaded settings file " + fileName + " for Digi-" + QString::number(digi[i]->GetSerialNumber())); digi[i]->ProgramSettingsToBoard(); }else{