mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-14 01:15:38 -04:00
Fixed freeze in TouchTunes scan
Made adsb_map.py compatible with Python 3
This commit is contained in:
parent
d517bc31ec
commit
196518457f
8 changed files with 80 additions and 37 deletions
|
@ -18,6 +18,7 @@
|
|||
# Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
import struct
|
||||
from PIL import Image
|
||||
|
@ -38,4 +39,4 @@ for y in range (0, im.size[1]):
|
|||
pixel_lcd |= (pix[x, y][2] >> 3)
|
||||
line += struct.pack('H', pixel_lcd)
|
||||
outfile.write(line)
|
||||
print str(y) + '/' + str(im.size[1]) + '\r',
|
||||
print(str(y) + '/' + str(im.size[1]) + '\r', end="")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue