An Arduino library for SDI-12 communication with a wide variety of environmental sensors. This library provides a general software solution, without requiring any additional hardware.
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.
This bug fix actually contained an error because of a invalid library source path during testing. A second pull request has been issued with the proper changes.
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.