From a0cb7ca6d5cb0b94dade176184fbb9d706434385 Mon Sep 17 00:00:00 2001 From: "allan.bugyi" Date: Wed, 22 May 2019 11:16:55 -0300 Subject: [PATCH] Minor modification. --- lucioleApp/src/lucioledrv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lucioleApp/src/lucioledrv.cpp b/lucioleApp/src/lucioledrv.cpp index cfa9868..2270f46 100644 --- a/lucioleApp/src/lucioledrv.cpp +++ b/lucioleApp/src/lucioledrv.cpp @@ -176,14 +176,14 @@ asynStatus Lucioledrv::writeInt32(asynUser *pasynUser, epicsInt32 value) if(function==light_ch1_longOutValue){ short lightValue = (short) value; - if(lightValue>0 && lightValue<20000){ + if(lightValue>=0 && lightValue<=20000){ luciole_setLightValue(1, lightValue); } } else if(function==light_ch2_longOutValue){ short lightValue = (short) value; - if(lightValue>0 && lightValue<20000){ + if(lightValue>=0 && lightValue<=20000){ luciole_setLightValue(2, lightValue); } }