From 2692ef448682570f5c41befb414951d97b85f1e6 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sun, 23 Oct 2022 18:47:04 +0200 Subject: [PATCH] Fix DisplayCalibrate --- tasmota/berry/modules/DisplayCalibrate.tapp | Bin 12140 -> 12211 bytes .../modules/ts_calibrate/ts_calibrate.be | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tasmota/berry/modules/DisplayCalibrate.tapp b/tasmota/berry/modules/DisplayCalibrate.tapp index 7a8b80e7209e97f092b8672646ed2d9f95dd8ad3..0c75a7042306c0e26a3a1e2adc99217d0fc0affe 100644 GIT binary patch delta 297 zcmaD8w>h3Sz?+$civa{Y=k-qHRTPTi4NuZaS)Wu|!Og(P@`I6qVWY!pMytZ9;i0@o zW)+^*VPF7Zeg+walH&N}#GK5eqQsI^y`*3KnF}_)7RGlxd5S^MFi-!0B=SnIcA7EQCu=P aQD0LNWG99ORyL5Qn1FB@klvsN;sF3m_Cloq diff --git a/tasmota/berry/modules/ts_calibrate/ts_calibrate.be b/tasmota/berry/modules/ts_calibrate/ts_calibrate.be index 8435c2199..04cddf69c 100644 --- a/tasmota/berry/modules/ts_calibrate/ts_calibrate.be +++ b/tasmota/berry/modules/ts_calibrate/ts_calibrate.be @@ -1,4 +1,7 @@ # TouchScreen calibration +# +# rm DisplayCalibrate.tapp; zip -j -0 DisplayCalibrate.tapp ts_calibrate/* +# var ts_calibrate = module("ts_calibrate") ts_calibrate.init = def (m) @@ -104,8 +107,8 @@ ts_calibrate.init = def (m) end # draw cross - def draw_cross(x, y, size) - var sz2 = size / 2 + def draw_cross(x, y, sz) + var sz2 = sz / 2 self.p1.x = x - sz2 self.p1.y = y self.p2.x = x + sz2