Remove length from raw data. Makes more sense really.

This commit is contained in:
Penny Wood 2024-04-03 11:26:15 +00:00
parent 064adf59af
commit 7c26eddca1
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ void ws18x0_uart::WS18x0UARTComponent::loop() {
break;
case WS18X0_UART_STATE_WAITING_FOR_LENGTH:
if (data >= 9 && data <= 10) {
this->raw_ = data;
this->raw_ = 0;
this->read_state_ = data - 2;
} else {
// Invalid length. Warn and resync