Added support for configurable logging on the ESP32 platform. #10
1 changed files with 2 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* 🛡️ <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
|
||||
* 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)
|
||||
{
|
||||
// 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;
|
||||
const TickType_t minimumInterval = pdMS_TO_TICKS(500);
|
||||
|
||||
|
|
@ -329,11 +329,6 @@ DecodedPacket_T *PROTOCOLS_MaybeDecodePacket(TimedPulseTrain_T *packet)
|
|||
}
|
||||
|
||||
#ifdef DEBUG_PACKET_DECODE
|
||||
|
||||
#ifdef ESP_PLATFORM
|
||||
esp_log_level_set(KLOG_TAG, ESP_LOG_DEBUG);
|
||||
#endif // ESP_PLATFORM
|
||||
|
||||
if (result != NULL)
|
||||
{
|
||||
KLOG_DEBUG(KLOG_TAG, "Successfully decoded packet as %s: %s", DecodedPacketTypeAsString(result->Generic.type), ProtocolNameAsString(result->Generic.protocol));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue