Skip to content

Commit cc6f8a0

Browse files
committed
wip: Continue osfv integration
Signed-off-by: Pawel Langowski <[email protected]>
1 parent 291c354 commit cc6f8a0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

osfv_cli/src/osfv/libs/rte.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ def relay_set(self, relay_state):
137137
gpio_state = None
138138
if relay_state == 'on':
139139
gpio_state = 'high'
140-
if relay_state == 'low':
141-
gpio_state = 'off'
140+
if relay_state == 'off':
141+
gpio_state = 'low'
142142
self.gpio_set(self.GPIO_RELAY, gpio_state)
143143

144144
def reset_cmos(self):

osfv_cli/src/osfv/rf/rte_robot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def rte_reset(self, time=1):
8484
self.rte.reset(time)
8585

8686
@keyword(types=None)
87-
def rte_gpio_get(self, gpio_no):
87+
def rte_gpio_get(self, gpio_no: int):
8888
state = self.rte.gpio_get(gpio_no)
8989
robot.api.logger.info(f"GPIO {gpio_no} state: {state}")
9090
return state

0 commit comments

Comments
 (0)