PS_16_DZ: flush serial after sending command

This commit is contained in:
Joel Stein 2018-11-26 13:29:00 +01:00
parent a6124c376e
commit 41ddab2cbe
1 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,7 @@ boolean PS16DZSetPower(void)
PS16DZSerial->print(ps16dz_tx_buffer);
PS16DZSerial->write(0x1B);
PS16DZSerial->flush();
status = true;
}
@ -105,6 +106,7 @@ void PS16DZSerialDuty(uint8_t duty)
PS16DZSerial->print(ps16dz_tx_buffer);
PS16DZSerial->write(0x1B);
PS16DZSerial->flush();
} else {
ps16dz_ignore_dim = false; // reset flag
@ -212,6 +214,7 @@ void PS16DZSerialInput(void)
PS16DZSerial->print(ps16dz_tx_buffer);
PS16DZSerial->write(0x1B);
PS16DZSerial->flush();
}
}
}