mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
error message 'unrecognized function enum' from detector or receiver prepended with Software version mismatch to handle enum start change between v6 and v7 (#680)
This commit is contained in:
@ -234,8 +234,7 @@ int ClientInterface::decodeFunction(Interface &socket) {
|
||||
socket.Receive(fnum);
|
||||
socket.setFnum(fnum);
|
||||
if (fnum <= NUM_DET_FUNCTIONS || fnum >= NUM_REC_FUNCTIONS) {
|
||||
throw RuntimeError("Unrecognized Function enum " +
|
||||
std::to_string(fnum) + "\n");
|
||||
throw RuntimeError(UNRECOGNIZED_FNUM_ENUM + std::to_string(fnum));
|
||||
} else {
|
||||
LOG(logDEBUG1) << "calling function fnum: " << fnum << " ("
|
||||
<< getFunctionNameFromEnum((enum detFuncs)fnum) << ")";
|
||||
|
Reference in New Issue
Block a user