mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
text formatting
This commit is contained in:
parent
bc34791284
commit
eb236c9935
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user