diff --git a/src/daq_soft_proton.c b/src/daq_soft_proton.c index c8dc940..60f2e84 100644 --- a/src/daq_soft_proton.c +++ b/src/daq_soft_proton.c @@ -17,7 +17,7 @@ /* Sample rate */ #define SOFT_PROTON_SAMPLE_RATE 0.1 -/* To allow setting debug pring from iocsh */ +/* To allow setting debug pring from iocsh */ static int softProtonDebug=0; epicsExportAddress(int, softProtonDebug); @@ -36,7 +36,7 @@ struct spc_internal { /* Enum with values for all commands * this has to match the what's in the mbbi in the database*/ -enum commands { +enum commands { NONE = 0, COUNT_PRESET = 1, TIME_PRESET = 2, @@ -189,7 +189,7 @@ static long processEmulatedCounter(struct aSubRecord *psub) *monitor_count_out = spc->monitor_count; *elapsed_time_out = spc->elapsed_time; return 0; - } else if (((spc->status == COUNTING || spc->status == LOW_RATE) + } else if (((spc->status == COUNTING || spc->status == LOW_RATE) && spc->command_trig == PAUSE) || (spc->status == PAUSED && spc->command_trig == NONE)) { msg_txt_out = "Stopping!";