if not f:
pytest.skip("gpio not configured")
- gpio_pin_adr = f['gpio_op_pin']
+ gpio_pin_adr = f.get('gpio_op_pin')
+
+ if gpio_pin_adr is None:
+ pytest.skip("gpio_op_pin is not configured")
+
gpio_set_value = f['gpio_set_value']
if not f:
pytest.skip("gpio not configured")
- gpio_pin_adr = f['gpio_op_pin']
+ gpio_pin_adr = f.get('gpio_op_pin')
+
+ if gpio_pin_adr is None:
+ pytest.skip("gpio_op_pin is not configured")
+
gpio_clear_value = f['gpio_clear_value']
if not f:
pytest.skip("gpio not configured")
- gpio_pin_adr = f['gpio_op_pin']
+ gpio_pin_adr = f.get('gpio_op_pin')
+
+ if gpio_pin_adr is None:
+ pytest.skip("gpio_op_pin is not configured")
+
gpio_set_value = f['gpio_set_value']
gpio_clear_value = f['gpio_clear_value']