mirror of
https://github.com/revspace/operame
synced 2024-12-04 13:47:29 +00:00
Flush serial buffers before sending 0x87
This commit is contained in:
parent
2807ee2647
commit
b84a6d8b19
@ -262,6 +262,7 @@ int aqc_get_co2() {
|
||||
|
||||
void aqc_set_zero() {
|
||||
const uint8_t command[9] = { 0xff, 0x01, 0x87, 0, 0, 0, 0, 0, 0x78 };
|
||||
flush(hwserial1);
|
||||
hwserial1.write(command, sizeof(command));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user