mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-26 13:49:21 +00:00
Forgot to update the oled script after renaming class method. (#693)
This commit is contained in:
parent
ba8ad2e7f5
commit
cd0baa4676
@ -161,7 +161,7 @@ FONT = ImageFont.truetype('resources/type_writer.ttf', FONT_SIZE)
|
|||||||
|
|
||||||
IP_ADDR, HOSTNAME = get_ip_and_host()
|
IP_ADDR, HOSTNAME = get_ip_and_host()
|
||||||
REMOVABLE_DEVICE_TYPES = ractl_cmd.get_removable_device_types()
|
REMOVABLE_DEVICE_TYPES = ractl_cmd.get_removable_device_types()
|
||||||
SUPPORT_DEVICE_TYPES = ractl_cmd.get_support_device_types()
|
PERIPHERAL_DEVICE_TYPES = ractl_cmd.get_peripheral_device_types()
|
||||||
|
|
||||||
def formatted_output():
|
def formatted_output():
|
||||||
"""
|
"""
|
||||||
@ -183,7 +183,7 @@ def formatted_output():
|
|||||||
else:
|
else:
|
||||||
output.append(f"{line['id']} {line['device_type'][2:4]} {line['status']}")
|
output.append(f"{line['id']} {line['device_type'][2:4]} {line['status']}")
|
||||||
# Special handling of devices that don't use image files
|
# Special handling of devices that don't use image files
|
||||||
elif line["device_type"] in (SUPPORT_DEVICE_TYPES):
|
elif line["device_type"] in (PERIPHERAL_DEVICE_TYPES):
|
||||||
if line["vendor"] == "RaSCSI":
|
if line["vendor"] == "RaSCSI":
|
||||||
output.append(f"{line['id']} {line['device_type'][2:4]} {line['product']}")
|
output.append(f"{line['id']} {line['device_type'][2:4]} {line['product']}")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user