Skip to content

Commit 5172583

Browse files
committed
Merge pull request #129 from 251/screen_type_error
Screen: TypeError
2 parents c0641c0 + 8d54ce7 commit 5172583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ev3dev/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,7 @@ def __init__(self):
23062306

23072307
self._img = Image.new(
23082308
self.var_info.bits_per_pixel == 1 and "1" or "RGB",
2309-
(self.fix_info.line_length * 8 / self.var_info.bits_per_pixel, self.yres),
2309+
(self.fix_info.line_length * 8 // self.var_info.bits_per_pixel, self.yres),
23102310
"white")
23112311

23122312
self._draw = ImageDraw.Draw(self._img)

0 commit comments

Comments
 (0)