Removed obsolete ESP32-specific code.

This commit is contained in:
Joe Kearney 2026-01-08 18:51:30 -06:00
parent f80cb59828
commit 3b2718e6f4

View file

@ -3,7 +3,7 @@
* *
* 🛡 <https://ktag.clubk.club> 🃞 * 🛡 <https://ktag.clubk.club> 🃞
* *
* Copyright © 2016-2025 Joseph P. Kearney and the KTag developers. * Copyright © 2016-2026 Joseph P. Kearney and the KTag developers.
* *
* This program is free software: you can redistribute it and/or modify it under * This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free * the terms of the GNU Affero General Public License as published by the Free
@ -250,7 +250,7 @@ DecodedPacket_T *PROTOCOLS_MaybeDecodePacket(TimedPulseTrain_T *packet)
if (result != NULL) if (result != NULL)
{ {
// Many NEC remotes repeat packets when the button is held down. // Many NEC remotes repeat packets when the button is held down.
// Too avoid double-counting, endure 500ms of silence between packets. // Too avoid double-counting, ensure 500ms of silence between packets.
static TickType_t lastPacketTime = 0; static TickType_t lastPacketTime = 0;
const TickType_t minimumInterval = pdMS_TO_TICKS(500); const TickType_t minimumInterval = pdMS_TO_TICKS(500);
@ -329,11 +329,6 @@ DecodedPacket_T *PROTOCOLS_MaybeDecodePacket(TimedPulseTrain_T *packet)
} }
#ifdef DEBUG_PACKET_DECODE #ifdef DEBUG_PACKET_DECODE
#ifdef ESP_PLATFORM
esp_log_level_set(KLOG_TAG, ESP_LOG_DEBUG);
#endif // ESP_PLATFORM
if (result != NULL) if (result != NULL)
{ {
KLOG_DEBUG(KLOG_TAG, "Successfully decoded packet as %s: %s", DecodedPacketTypeAsString(result->Generic.type), ProtocolNameAsString(result->Generic.protocol)); KLOG_DEBUG(KLOG_TAG, "Successfully decoded packet as %s: %s", DecodedPacketTypeAsString(result->Generic.type), ProtocolNameAsString(result->Generic.protocol));