Hid: FIX global

This commit is contained in:
Petr Kracík 2020-05-24 13:09:20 +02:00
parent 23fe507dc2
commit a0da08c050

View File

@ -21,6 +21,7 @@ NULL = chr(0)
hiddev = None hiddev = None
def hid_init(): def hid_init():
global hiddev
hiddev=open('/dev/hidg0', 'rb+') hiddev=open('/dev/hidg0', 'rb+')
def hid_write(data): def hid_write(data):