File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments