bug fix for VX2730
This commit is contained in:
parent
4a5fd7a769
commit
fc31f1a658
|
@ -1208,12 +1208,20 @@ void Digitizer2Gen::ReadAllSettings(){
|
|||
boardSettings[i].GetPara() == PHA::DIG::TempSensADC6.GetPara()
|
||||
)
|
||||
) continue;
|
||||
|
||||
if( ModelName == "VX2730" &&
|
||||
(boardSettings[i].GetPara() == PHA::DIG::FreqSensCore.GetPara() ||
|
||||
boardSettings[i].GetPara() == PHA::DIG::DutyCycleSensDCDC.GetPara()
|
||||
)
|
||||
) continue;
|
||||
ReadValue(boardSettings[i]);
|
||||
}
|
||||
|
||||
if( ModelName == "VX2745") for(int i = 0; i < 4 ; i ++) ReadValue(VGASetting[i], i);
|
||||
|
||||
if( ModelName != "VX2730"){
|
||||
if( CupVer >= 2023091800 ) for( int idx = 0; idx < 16; idx++) ReadValue(InputDelay[idx], idx, false);
|
||||
}
|
||||
|
||||
for( int index = 0; index < 4; index++){
|
||||
for( int i = 0; i < (int) LVDSSettings[index].size(); i++){
|
||||
|
|
|
@ -788,6 +788,7 @@ DigiSettingsPanel::DigiSettingsPanel(Digitizer2Gen ** digi, unsigned short nDigi
|
|||
}
|
||||
|
||||
{//^====================== Group = InputDelay
|
||||
if( digi[iDigi]->GetModelName() != "VX2730") {
|
||||
bdGroup[iDigi] = new QWidget(this);
|
||||
bdTab->addTab(bdGroup[iDigi], "Input Delay");
|
||||
QGridLayout * groupLayout = new QGridLayout(bdGroup[iDigi]);
|
||||
|
@ -800,6 +801,7 @@ DigiSettingsPanel::DigiSettingsPanel(Digitizer2Gen ** digi, unsigned short nDigi
|
|||
|
||||
bdGroup[iDigi]->setEnabled(digi[iDigi]->GetCupVer() >= MIN_VERSION_GROUP);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -2619,7 +2621,7 @@ void DigiSettingsPanel::UpdatePanelFromMemory(bool onlyStatus){
|
|||
}
|
||||
|
||||
//------------ Group
|
||||
if( digi[ID]->GetCupVer() >= MIN_VERSION_GROUP ){
|
||||
if( digi[ID]->GetModelName() != "VX2730" && digi[ID]->GetCupVer() >= MIN_VERSION_GROUP ){
|
||||
for( int k = 0 ; k < MaxNumberOfGroup; k++){
|
||||
FillSpinBoxValueFromMemory(spbInputDelay[ID][k], PHA::GROUP::InputDelay, k); // PHA = PSD
|
||||
}
|
||||
|
@ -2748,12 +2750,12 @@ void DigiSettingsPanel::UpdatePanelFromMemory(bool onlyStatus){
|
|||
unsigned long haha = Utility::TenBase(digi[ID]->GetSettingValueFromMemory(PHA::CH::ChannelsTriggerMask, ch));
|
||||
if( mask != haha) {
|
||||
isSame = false;
|
||||
leTriggerMask[ID][MaxNumberOfChannel]->setText("Diff. value");
|
||||
leTriggerMask[ID][digi[ID]->GetNChannels()]->setText("Diff. value");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if( isSame ) leTriggerMask[ID][MaxNumberOfChannel]->setText("0x" + QString::number(mask, 16).toUpper());
|
||||
if( isSame ) leTriggerMask[ID][digi[ID]->GetNChannels()]->setText("0x" + QString::number(mask, 16).toUpper());
|
||||
}else{
|
||||
unsigned long mask = Utility::TenBase(digi[ID]->GetSettingValueFromMemory(PHA::CH::ChannelsTriggerMask, cbChPick[ID]->currentData().toInt()));
|
||||
leTriggerMask[ID][digi[ID]->GetNChannels()]->setText("0x" + QString::number(mask, 16).toUpper());
|
||||
|
|
Loading…
Reference in New Issue
Block a user