formatting

This commit is contained in:
SGE 2024-04-02 10:26:40 +02:00
parent de3661586f
commit f83cfa8d63
3 changed files with 5 additions and 4 deletions

View file

@ -53,7 +53,8 @@ void ICNT86Touchscreen::update_touches() {
UWORD y = ((UWORD) buf[4 + 7 * i] << 8) + buf[3 + 7 * i]; UWORD y = ((UWORD) buf[4 + 7 * i] << 8) + buf[3 + 7 * i];
UWORD p = buf[5 + 7 * i]; UWORD p = buf[5 + 7 * i];
UWORD touch_evenid = buf[6 + 7 * i]; UWORD touch_evenid = buf[6 + 7 * i];
if (this->touches_.count(touch_evenid) == 0 || (x != this->touches_[touch_evenid].x_prev && y != this->touches_[touch_evenid].y_prev)) { if (this->touches_.count(touch_evenid) == 0 ||
(x != this->touches_[touch_evenid].x_prev && y != this->touches_[touch_evenid].y_prev)) {
this->add_raw_touch_position_(touch_evenid, x, y, p); this->add_raw_touch_position_(touch_evenid, x, y, p);
} }
} }

View file

@ -20,7 +20,7 @@ ICNT86Touchscreen = icnt86_ns.class_(
CONF_ICNT86_ID = "icnt86_id" CONF_ICNT86_ID = "icnt86_id"
CONF_RTS_PIN = "rts_pin" CONF_RTS_PIN = "rts_pin"
CONFIG_SCHEMA = touchscreen.touchscreen_schema('250ms').extend( CONFIG_SCHEMA = touchscreen.touchscreen_schema("250ms").extend(
cv.Schema( cv.Schema(
{ {
cv.GenerateID(): cv.declare_id(ICNT86Touchscreen), cv.GenerateID(): cv.declare_id(ICNT86Touchscreen),