diff --git a/DigiParameters.h b/DigiParameters.h index 246e690..6c54512 100644 --- a/DigiParameters.h +++ b/DigiParameters.h @@ -75,7 +75,7 @@ class Reg { haha = "/cmd/"; // for SendChSWTrigger, not in GUI } if( ch_index == -1 ){ - return "/ch/0.." + std::to_string(nChannals) + haha + name; + return "/ch/0.." + std::to_string(nChannals-1) + haha + name; }else{ return "/ch/" + std::to_string(ch_index) + haha + name; }