Skip to content

Commit 914259d

Browse files
committed
Updates the touch driver and hopefully fixes a couple of problems with it.
1 parent be8a95a commit 914259d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api_drivers/py_api_drivers/frozen/indev/pointer_framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def calibrate(self, update_handler=None):
6161

6262
import time
6363
import touch_calibrate
64-
self._cal_running = touch_calibrate.TPCal(self, self.__cal_callback)
64+
self._cal_running = touch_calibrate.TPCal(self, self.__cal_callback, 10)
6565
while self._cal_running:
6666
if update_handler is not None:
6767
delay = update_handler()

api_drivers/py_api_drivers/frozen/indev/touch_calibration/touch_calibrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def __str__(self):
237237

238238
class TPCal(object):
239239

240-
def __init__(self, touch_count, indev, callback):
240+
def __init__(self, indev, callback, touch_count):
241241
self.callback = callback
242242
disp = indev.get_disp()
243243
disp.set_default()

0 commit comments

Comments
 (0)