Changed logic for checking motor done to work with old 6.15 firmware

This commit is contained in:
MarkRivers
2007-05-30 21:40:35 +00:00
parent 997da29273
commit f7920a3ada
+2 -2
View File
@@ -234,9 +234,9 @@ STATIC int set_status(int card, int signal)
if (cntrl->model == MODEL_PM304) {
/* The response string is an eight character string of ones and zeroes */
if (strcmp(response, "00000000") == 0)
if (response[3] == '0') {
status.Bits.RA_DONE = 0;
else {
} else {
status.Bits.RA_DONE = 1;
if (drvPM304ReadbackDelay != 0.)
epicsThreadSleep(drvPM304ReadbackDelay);