be more accurate

This commit is contained in:
Chrys 2019-08-22 22:33:35 +02:00
parent bf49e9d72a
commit 228f6ba417

View File

@ -165,7 +165,8 @@ class driver(screenDriver):
continue continue
elif lastScreenContent == b'': elif lastScreenContent == b'':
lastScreenContent = screenContent lastScreenContent = screenContent
if abs( int(screenContent[2]) - int(lastScreenContent[2])) in [1]: if (abs( int(screenContent[2]) - int(lastScreenContent[2])) in [1,2]) and \
(abs( int(screenContent[3]) == int(lastScreenContent[3]))):
# Skip X Movement # Skip X Movement
pass pass
elif abs( int(screenContent[3]) - int(lastScreenContent[3])) in [1]: elif abs( int(screenContent[3]) - int(lastScreenContent[3])) in [1]: