Skip to content

Commit b16f063

Browse files
committed
Code format
1 parent edf03d8 commit b16f063

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def DisplayPILImage(ser, image, x, y):
7878
line += struct.pack('H', rgb)
7979

8080
# Send image data by multiple of DISPLAY_WIDTH bytes
81-
if len(line) >= DISPLAY_WIDTH*4:
81+
if len(line) >= DISPLAY_WIDTH * 4:
8282
ser.write(line)
8383
line = bytes()
8484

@@ -164,6 +164,7 @@ def sighandler(signum, frame):
164164
global stop
165165
stop = True
166166

167+
167168
# Set the signal handlers, to send a complete frame to the LCD before exit
168169
signal.signal(signal.SIGINT, sighandler)
169170
signal.signal(signal.SIGTERM, sighandler)

0 commit comments

Comments
 (0)