Weak Signal Bug Fix

This pull request modifies the setState function. Since the function did not return immediately from the conditional statements, any invocation of the function would inevitably execute the ELSE statement of the final IF(state==LISTENING) which unnecessarily put the pin into the input state and significantly reduced signal strength. This code has been tested and is ready for merging. 

Thanks to Gerard Ista and team for debugging the issue.