From 025e985b75731887e94e2f4bd98448fce246cf24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derqvist?= Date: Fri, 16 Jan 2026 10:08:33 +0100 Subject: [PATCH] wip --- src/daq_soft_proton.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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!";