Skip to content

Commit 8ff2614

Browse files
committed
Merge branch 'main' into feature/data-extractor-data
2 parents 92e3c13 + 7985ede commit 8ff2614

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

openc3/data/config/item_modifiers.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

openc3/data/config/parameter_modifiers.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
151151
GENERIC_WRITE_CONVERSION_END:
152152
summary: Complete a generic write conversion

0 commit comments

Comments
 (0)