Skip to content

Commit

Permalink
added logging for when fast flow control is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
toomanybrians committed Sep 19, 2016
1 parent 2bfefd0 commit 3afe98e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mpf/platforms/fast/fast_serial_communicator.py
Expand Up @@ -221,6 +221,12 @@ def _send(self, msg):
if self.messages_in_flight > self.max_messages_in_flight:
self.send_ready.clear()

self.log.debug("Enabling Flow Control for %s connection. "
"Messages in flight: %s, Max setting: %s",
self.remote_processor,
self.messages_in_flight,
self.max_messages_in_flight)

self.writer.write(msg.encode() + b'\r')
if debug and msg[0:2] != "WD":
self.platform.log.debug("Send: %s", msg)
Expand Down

0 comments on commit 3afe98e

Please sign in to comment.