From 9c90d24fb8f51a3ca54f875d93f95b1d05aea542 Mon Sep 17 00:00:00 2001 From: kpetersn Date: Tue, 27 Mar 2018 14:25:21 -0500 Subject: [PATCH] Fix for OpMode_ --- motorApp/AMCISrc/ANF2Driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motorApp/AMCISrc/ANF2Driver.cpp b/motorApp/AMCISrc/ANF2Driver.cpp index 02de3fa9..11fee7c7 100644 --- a/motorApp/AMCISrc/ANF2Driver.cpp +++ b/motorApp/AMCISrc/ANF2Driver.cpp @@ -362,7 +362,7 @@ ANF2Axis::ANF2Axis(ANF2Controller *pC, int axisNo, epicsInt32 config) OutPulse_ = (config & (0x400 << 16)) >> 26; HomeOp_ = (config & (0x800 << 16)) >> 27; CardAxis_ = (config & (0x4000 << 16)) >> 30; - OpMode_ = (config & (0x8000 << 16)) >> 31; + OpMode_ = (epicsUInt32)(config & (0x8000 << 16)) >> 31; // LSW CaptInputAS_ = config & 0x1; ExtInputAS_ = (config & 0x2) >> 1;