[rdm6300] Add ID-20LA compatibility by skipping CR/LF bytes (#13779)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jonathan Swoboda
2026-02-06 04:10:22 -05:00
committed by GitHub
co-authored by Claude Opus 4.5
parent 8e461db301
commit fef5d3f88f
+2
View File
@@ -34,6 +34,8 @@ void rdm6300::RDM6300Component::loop() {
this->buffer_[this->read_state_ / 2] += value;
}
this->read_state_++;
} else if (data == 0x0D || data == 0x0A) {
// Skip CR/LF bytes (ID-20LA compatibility)
} else if (data != RDM6300_END_BYTE) {
ESP_LOGW(TAG, "Invalid end byte from RDM6300!");
this->read_state_ = RDM6300_STATE_WAITING_FOR_START;