Just a missing else.
Rigol DS1054Z still doesn't work like this properly, but that's hopefully a different issue.
Before:
[stary@glados build]$ ./src/glscopeclient/glscopeclient rigol:rigol:usbtmc:/dev/usbtmc0
Warning: Bad IDN response
Warning: Bad IDN response
Warning: Bad IDN response
ERROR: Persistent bad IDN response, giving up
ERROR: Bad model number
Segmentation fault (core dumped)
Just a missing
else
. Rigol DS1054Z still doesn't work like this properly, but that's hopefully a different issue.Before:
After: No errors.