This commit is contained in:
Jonas Zeunert
2020-02-13 21:58:15 +01:00
parent 413bd84530
commit 0671c504ae
3 changed files with 7 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
import requests_unixsocket as req
import socket
import asyncio
from utils.Singleton import Singleton
@@ -47,7 +48,8 @@ class Networking(metaclass=Singleton):
def writeDisplayScore(self, display, score):
self.get("/displays/" + display + "/write_score/" + str(score))
async def getInputEvent(self):
@asyncio.coroutine
def getInputEvent(self):
header = list()
while b'\x02' not in header:
byte = self.input_socket.recv(1)