From eb236c9935b7e3268c8ba346086a7346b2766312 Mon Sep 17 00:00:00 2001 From: Vic Date: Wed, 23 Dec 2020 15:08:01 +0100 Subject: [PATCH] text formatting --- tasmota/xdrv_47_ftc532.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasmota/xdrv_47_ftc532.ino b/tasmota/xdrv_47_ftc532.ino index 31d1e1b9c..82c1e9272 100644 --- a/tasmota/xdrv_47_ftc532.ino +++ b/tasmota/xdrv_47_ftc532.ino @@ -130,11 +130,11 @@ void ftc532_init(void) { // Initialize void ftc532_update(void) { // Usually called every 50 ms #ifdef DEBUG_TASMOTA_DRIVER - // WARNING: Reduce callback frequency if this code is enabled - //if ((Ftc532.sample & 0xF) != ((~Ftc532.sample >> 4) & 0xF) || ((Ftc532.sample >> 8) & 0xF) != ((~Ftc532.sample >> 12) & 0xF)) { - // AddLog_P(LOG_LEVEL_DEBUG, PSTR("FTC: inverted sample does not match %x %x %x %x"), - // Ftc532.sample & 0xF, (~Ftc532.sample >> 4) & 0xF, (Ftc532.sample >> 8) & 0xF, (~Ftc532.sample >> 12) & 0xF); - //} +// WARNING: Reduce callback frequency if this code is enabled +// if ((Ftc532.sample & 0xF) != ((~Ftc532.sample >> 4) & 0xF) || ((Ftc532.sample >> 8) & 0xF) != ((~Ftc532.sample >> 12) & 0xF)) { +// AddLog_P(LOG_LEVEL_DEBUG, PSTR("FTC: inverted sample does not match %x %x %x %x"), +// Ftc532.sample & 0xF, (~Ftc532.sample >> 4) & 0xF, (Ftc532.sample >> 8) & 0xF, (~Ftc532.sample >> 12) & 0xF); +// } #endif // DEBUG_TASMOTA_DRIVER Ftc532.keys = (Ftc532.sample & 0xF) | ((Ftc532.sample >> 4) & 0xF0); if (Ftc532.keys != Ftc532.old_keys) {