mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-15 04:32:06 +08:00
increase buffer to 2KiB
This commit is contained in:
@@ -130,7 +130,7 @@ class ParamWatcher(Params):
|
||||
while True:
|
||||
for fileno, _ in poll.poll():
|
||||
if fileno == fd:
|
||||
buffer = os.read(fd, 1024)
|
||||
buffer = os.read(fd, 2048)
|
||||
i = 0
|
||||
while i + 16 <= len(buffer):
|
||||
_, mask, _, name_len = struct.unpack_from("iIII", buffer, i)
|
||||
|
||||
Reference in New Issue
Block a user