mirror of https://github.com/arendst/Tasmota.git
PS_16_DZ: start must be 'A'
This commit is contained in:
parent
e024ca3beb
commit
0f2ea2800e
|
@ -150,6 +150,7 @@ void PS16DZSerialInput(void)
|
||||||
//ps16dz_command = PS16DZSerial->readStringUntil(0x1B);
|
//ps16dz_command = PS16DZSerial->readStringUntil(0x1B);
|
||||||
byte serial_in_byte = PS16DZSerial->read();
|
byte serial_in_byte = PS16DZSerial->read();
|
||||||
if (serial_in_byte != 0x1B){
|
if (serial_in_byte != 0x1B){
|
||||||
|
if (ps16dz_byte_counter || (!ps16dz_byte_counter && serial_in_byte = 'A'));
|
||||||
ps16dz_rx_buffer[ps16dz_byte_counter++] = serial_in_byte;
|
ps16dz_rx_buffer[ps16dz_byte_counter++] = serial_in_byte;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue