This commit is contained in:
2026-01-16 10:08:33 +01:00
committed by soederqvist_a
parent 14f4e3eee7
commit 025e985b75

View File

@@ -17,7 +17,7 @@
/* Sample rate */ /* Sample rate */
#define SOFT_PROTON_SAMPLE_RATE 0.1 #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; static int softProtonDebug=0;
epicsExportAddress(int, softProtonDebug); epicsExportAddress(int, softProtonDebug);
@@ -36,7 +36,7 @@ struct spc_internal {
/* Enum with values for all commands /* Enum with values for all commands
* this has to match the what's in the mbbi in the database*/ * this has to match the what's in the mbbi in the database*/
enum commands { enum commands {
NONE = 0, NONE = 0,
COUNT_PRESET = 1, COUNT_PRESET = 1,
TIME_PRESET = 2, TIME_PRESET = 2,
@@ -189,7 +189,7 @@ static long processEmulatedCounter(struct aSubRecord *psub)
*monitor_count_out = spc->monitor_count; *monitor_count_out = spc->monitor_count;
*elapsed_time_out = spc->elapsed_time; *elapsed_time_out = spc->elapsed_time;
return 0; 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->command_trig == PAUSE) ||
(spc->status == PAUSED && spc->command_trig == NONE)) { (spc->status == PAUSED && spc->command_trig == NONE)) {
msg_txt_out = "Stopping!"; msg_txt_out = "Stopping!";