Skip to content

Commit

Permalink
delay response if RS485 for correct sync ack transmission (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
gioblu committed Jun 21, 2018
1 parent 80eaba3 commit 5fb715c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/strategies/ThroughSerial/ThroughSerial.h
Expand Up @@ -167,6 +167,8 @@ class ThroughSerial {

void send_response(uint8_t response) {
start_tx();
if(_enable_RS485_txe_pin != TS_NOT_ASSIGNED)
PJON_DELAY(_RS485_delay);
send_byte(response);
PJON_SERIAL_FLUSH(serial);
end_tx();
Expand Down

0 comments on commit 5fb715c

Please sign in to comment.