fixed the issue where a print statement was still coming through even
when not in debug mode.
fixed infinite loop caused on min_max setting due to the receiver ended
transmission before the transmitter reached the end state.