Skip to content

Commit

Permalink
Minor modification.
Browse files Browse the repository at this point in the history
  • Loading branch information
allan.bugyi committed May 22, 2019
1 parent 96af822 commit a0cb7ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lucioleApp/src/lucioledrv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit a0cb7ca

Please sign in to comment.