Rollback change

This commit is contained in:
Penny Wood 2024-04-03 11:48:31 +00:00
parent 7c26eddca1
commit 9b92e98109
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_ = 0;
this->raw_ = data;
this->read_state_ = data - 2;
} else {
// Invalid length. Warn and resync