From 71d231c2c4a58bf18e042c1fec144eb9dea511e7 Mon Sep 17 00:00:00 2001 From: DiSlord Live Date: Sun, 25 Dec 2022 10:11:14 +0300 Subject: [PATCH] Fix default touch calibration for 2.8 screen --- main.c | 2 +- nanovna.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index d585c6b..c9c6118 100644 --- a/main.c +++ b/main.c @@ -960,7 +960,7 @@ config_t config = { .dac_value = 1922, // .touch_cal = { 693, 605, 124, 171 }, // 2.4 inch LCD panel #ifdef TINYSA3 - .touch_cal = { 347, 495, 160, 205 }, // 2.8 inch LCD panel + .touch_cal = { 534, 741, 3458, 3434 }, // 2.8 inch LCD panel #endif #ifdef TINYSA4 .touch_cal = { 444, 715, 3552, 3499 }, // 4 inch panel diff --git a/nanovna.h b/nanovna.h index d50b145..c603e78 100644 --- a/nanovna.h +++ b/nanovna.h @@ -1384,7 +1384,7 @@ typedef struct properties { //sizeof(properties_t) == 0x1200 -#define CONFIG_MAGIC 0x434f4e5D /* 'CONF' */ +#define CONFIG_MAGIC 0x434f4e5F /* 'CONF' */ extern int16_t lastsaveid; //extern properties_t *active_props;