Fix nothing displayed with no images mounted.

This fixes the issue where nothing would show on the display unless an image is mounted.
This commit is contained in:
thewesker
2020-10-14 23:54:15 -04:00
committed by GitHub
parent 87c84689c6
commit e393f5fe5b

View File

@@ -149,6 +149,8 @@ while True:
continue continue
fields = line.split('|') fields = line.split('|')
output = str.strip(fields[1]) + " " + str.strip(fields[3]) + " " + os.path.basename(str.strip(fields[4])) output = str.strip(fields[1]) + " " + str.strip(fields[3]) + " " + os.path.basename(str.strip(fields[4]))
else:
output = "No images mounted!"
draw.text((x, y_pos), output, font=font, fill=255) draw.text((x, y_pos), output, font=font, fill=255)
y_pos = y_pos + 8 y_pos = y_pos + 8
# If there is still room on the screen, we'll display the time. If there's not room it will just be clipped # If there is still room on the screen, we'll display the time. If there's not room it will just be clipped