From 2672ab8db0c2473fb1d5664ac7663b8876565717 Mon Sep 17 00:00:00 2001 From: Felix Gerling Date: Sat, 13 Jan 2018 17:19:47 +0100 Subject: [PATCH 1/2] change fromstring to frombytes --- evic/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evic/cli.py b/evic/cli.py index 607e97d..47ab611 100644 --- a/evic/cli.py +++ b/evic/cli.py @@ -524,7 +524,7 @@ def screenshot(output): data = dev.read_screen() # create the image from screen data - im = Image.fromstring("1",(64,128),bytes(data)) + im = Image.frombytes("1",(64,128),bytes(data)) # Write the image to the file with handle_exceptions(IOError): From ce319ef887cf417cb1596cbf43c699d6a0de0fec Mon Sep 17 00:00:00 2001 From: Felix Gerling Date: Sat, 13 Jan 2018 17:23:13 +0100 Subject: [PATCH 2/2] Add Wismec Predator P.228 support --- evic/device.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evic/device.py b/evic/device.py index a5764b7..5ffc752 100644 --- a/evic/device.py +++ b/evic/device.py @@ -71,7 +71,8 @@ class HIDTransfer(object): 'W014': DeviceInfo("Reuleaux RX200", None, None), 'W016': DeviceInfo("CENTURION", None, None), 'W018': DeviceInfo("Reuleaux RX2/3", None, (64, 48)), - 'W033': DeviceInfo("Reuleaux RX200S", None, None) + 'W033': DeviceInfo("Reuleaux RX200S", None, None), + 'W078': DeviceInfo("Wismec Predator", None, (64, 48)) } # 0x43444948