bug fix on DigiParameters::GetFullPara for all channels

This commit is contained in:
Ryan Tang 2024-10-30 12:13:01 -04:00
parent b21e0fe37b
commit 2573de66c1

View File

@ -75,7 +75,7 @@ class Reg {
haha = "/cmd/"; // for SendChSWTrigger, not in GUI haha = "/cmd/"; // for SendChSWTrigger, not in GUI
} }
if( ch_index == -1 ){ if( ch_index == -1 ){
return "/ch/0.." + std::to_string(nChannals) + haha + name; return "/ch/0.." + std::to_string(nChannals-1) + haha + name;
}else{ }else{
return "/ch/" + std::to_string(ch_index) + haha + name; return "/ch/" + std::to_string(ch_index) + haha + name;
} }