mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-03 16:07:43 +00:00
PS_16_DZ: flush serial after sending command
This commit is contained in:
parent
a6124c376e
commit
41ddab2cbe
@ -84,6 +84,7 @@ boolean PS16DZSetPower(void)
|
|||||||
|
|
||||||
PS16DZSerial->print(ps16dz_tx_buffer);
|
PS16DZSerial->print(ps16dz_tx_buffer);
|
||||||
PS16DZSerial->write(0x1B);
|
PS16DZSerial->write(0x1B);
|
||||||
|
PS16DZSerial->flush();
|
||||||
|
|
||||||
status = true;
|
status = true;
|
||||||
}
|
}
|
||||||
@ -105,6 +106,7 @@ void PS16DZSerialDuty(uint8_t duty)
|
|||||||
|
|
||||||
PS16DZSerial->print(ps16dz_tx_buffer);
|
PS16DZSerial->print(ps16dz_tx_buffer);
|
||||||
PS16DZSerial->write(0x1B);
|
PS16DZSerial->write(0x1B);
|
||||||
|
PS16DZSerial->flush();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
ps16dz_ignore_dim = false; // reset flag
|
ps16dz_ignore_dim = false; // reset flag
|
||||||
@ -212,6 +214,7 @@ void PS16DZSerialInput(void)
|
|||||||
|
|
||||||
PS16DZSerial->print(ps16dz_tx_buffer);
|
PS16DZSerial->print(ps16dz_tx_buffer);
|
||||||
PS16DZSerial->write(0x1B);
|
PS16DZSerial->write(0x1B);
|
||||||
|
PS16DZSerial->flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user