Skip to content

Commit 184eccc

Browse files
committed
Change trigger type on Linux from TRIG_RISING and TRIG_FALLING to TRIG_POS_EDGE and TRIG_NEG_EDGE
1 parent 245b7ba commit 184eccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

measCompApp/src/drvUSBCTR.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,8 +1118,8 @@ asynStatus USBCTR::writeInt32(asynUser *pasynUser, epicsInt32 value)
11181118
// We map the UL Windows trigger types to Ul Linux
11191119
// We can't use macros from cbw.h because that file conflicts with uldaq.h
11201120
switch (value) {
1121-
case 0: triggerType = TRIG_RISING; break;
1122-
case 1: triggerType = TRIG_FALLING; break;
1121+
case 0: triggerType = TRIG_POS_EDGE; break;
1122+
case 1: triggerType = TRIG_NEG_EDGE; break;
11231123
case 6: triggerType = TRIG_HIGH; break;
11241124
case 7: triggerType = TRIG_LOW; break;
11251125
default:

0 commit comments

Comments
 (0)