Skip to content

Commit f7d6cc7

Browse files
committed
fix(sec_touch): removing incorrect handling of noise inside device listeners
1 parent a2608c1 commit f7d6cc7

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

components/sec_touch/sec_touch.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void SECTouchComponent::loop() {
6363
uint8_t peakedData;
6464
this->peek_byte(&peakedData);
6565
if (peakedData == NOISE && this->incoming_message.buffer_index == -1) {
66-
ESP_LOGD(TAG, " Discarding noise byte");
66+
ESP_LOGD(TAG, " Discarding noise byte (Or is it a Heartbeat with %d?)", peakedData);
6767
this->read_byte(&peakedData); // Discard the noise
6868
return;
6969
}
@@ -190,10 +190,6 @@ void SECTouchComponent::handle_uart_input_for_get_queue() {
190190
// TODO: This crashes the ESP32
191191
ESP_LOGW(TAG, "Starting to store message but the data is not ACK. Discarding data: %d", data);
192192
continue;
193-
} else if (!start_of_ack_message && data == NOISE) {
194-
ESP_LOGE(TAG, " received NOISE (255) inside message discarding all data: %d", data);
195-
this->incoming_message.reset();
196-
return;
197193
}
198194

199195
bool inside_id = total_etx == 1 && total_stx > 1 && total_tabs == 1;

0 commit comments

Comments
 (0)