mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
Fix
This commit is contained in:
parent
165051ad85
commit
603a8f478e
@ -114,10 +114,10 @@ def resolve_parameters_from_bindings(device: Device, bindings: list[Binding], de
|
|||||||
value=binding_property.default
|
value=binding_property.default
|
||||||
)
|
)
|
||||||
result[index] = property_to_string(temp_prop, devices)
|
result[index] = property_to_string(temp_prop, devices)
|
||||||
elif binding_property.type == "bool":
|
|
||||||
result[index] = "false"
|
|
||||||
elif binding_property.required:
|
elif binding_property.required:
|
||||||
raise DevicetreeException(f"device {device.node_name} doesn't have property '{binding_property.name}'")
|
raise DevicetreeException(f"device {device.node_name} doesn't have property '{binding_property.name}'")
|
||||||
|
elif binding_property.type == "bool":
|
||||||
|
result[index] = "false"
|
||||||
else:
|
else:
|
||||||
raise DevicetreeException(f"Device {device.node_name} doesn't have property '{binding_property.name}' and no default value is set")
|
raise DevicetreeException(f"Device {device.node_name} doesn't have property '{binding_property.name}' and no default value is set")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user