Commit ed07470c authored by Gino Tosti's avatar Gino Tosti
Browse files

added support for float

parent f4370326
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -459,9 +459,14 @@ public class ${Assembly}BaseImpl extends TCSHardwareDeviceImpl implements ${Asse

	   	$($y[$type][4]) minval = ${str($x.SetSheet["Alarm low"][$idx]).split(".")[0]};
		$($y[$type][4]) maxval = ${str($x.SetSheet["Alarm high"][$idx]).split(".")[0]};
#else
#if $type[0]=="F"
		$($y[$type][4]) minval = ${str($x.SetSheet["Alarm low"][$idx])}f;
		$($y[$type][4]) maxval = ${str($x.SetSheet["Alarm high"][$idx])}f;
#else
		$($y[$type][4]) minval = ${str($x.SetSheet["Alarm low"][$idx])};
		$($y[$type][4]) maxval = ${str($x.SetSheet["Alarm high"][$idx])};
#end if
#end if

		if (arg0>=minval && arg0<=maxval){