mirror of https://github.com/esphome/esphome.git
Remove length from raw data. Makes more sense really.
This commit is contained in:
parent
064adf59af
commit
7c26eddca1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue