aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/xds.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-01-18 16:53:52 +0100
committerThomas White <taw@physics.org>2018-01-19 10:48:51 +0100
commit555a6e10a85734fa30bafa8ffada4add91c611e0 (patch)
treead36a69a7f3c330b1d9c9c8e2aa6e40f2b20bab6 /libcrystfel/src/xds.c
parent5e33ce8a33c0e4b69adef9bdfc31aec3d2b5593b (diff)
Clean up indexing method probes
Diffstat (limited to 'libcrystfel/src/xds.c')
-rw-r--r--libcrystfel/src/xds.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libcrystfel/src/xds.c b/libcrystfel/src/xds.c
index bfb977ea..b0dd0c47 100644
--- a/libcrystfel/src/xds.c
+++ b/libcrystfel/src/xds.c
@@ -679,9 +679,8 @@ const char *xds_probe(UnitCell *cell)
for ( l=0; l<10; l++ ) {
char *pos;
- if ( fgets(line, 1024, fh) == NULL ) {
- ERROR("Failed to probe for XDS\n");
- } else {
+ if ( fgets(line, 1024, fh) != NULL ) {
+ STATUS("got %s\n", line);
pos = strstr(line, "** XDS **");
if ( pos != NULL ) {
ok = 1;