Motivation:
In certain cases it was possible for preamble to be sent once; this
would lead to frames getting sent more than once which in turn would
break state machines.
Modifications:
- Check the state of the connection before sending preamble.
- Include a test to check.
Result:
More correct implementation