File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -79,12 +79,12 @@ GENERIC_READ_CONVERSION_START:
7979 ruby_example : |
8080 APPEND_ITEM ITEM1 32 UINT
8181 GENERIC_READ_CONVERSION_START
82- return (value * 1.5).to_i # Convert the value by a scale factor
82+ (value * 1.5).to_i # Convert the value by a scale factor
8383 GENERIC_READ_CONVERSION_END
8484 python_example : |
8585 APPEND_ITEM ITEM1 32 UINT
8686 GENERIC_READ_CONVERSION_START
87- return int(value * 1.5) # Convert the value by a scale factor
87+ int(value * 1.5) # Convert the value by a scale factor
8888 GENERIC_READ_CONVERSION_END
8989 parameters :
9090 - name : Converted Type
Original file line number Diff line number Diff line change @@ -141,12 +141,12 @@ GENERIC_WRITE_CONVERSION_START:
141141 ruby_example : |
142142 APPEND_PARAMETER ITEM1 32 UINT 0 0xFFFFFFFF 0
143143 GENERIC_WRITE_CONVERSION_START
144- return (value * 1.5).to_i # Convert the value by a scale factor
144+ (value * 1.5).to_i # Convert the value by a scale factor
145145 GENERIC_WRITE_CONVERSION_END
146146 python_example : |
147147 APPEND_PARAMETER ITEM1 32 UINT 0 0xFFFFFFFF 0
148148 GENERIC_WRITE_CONVERSION_START
149- return int(value * 1.5) # Convert the value by a scale factor
149+ int(value * 1.5) # Convert the value by a scale factor
150150 GENERIC_WRITE_CONVERSION_END
151151GENERIC_WRITE_CONVERSION_END :
152152 summary : Complete a generic write conversion
You can’t perform that action at this time.
0 commit comments