Actually use omega parameter to determine if open/closed

This still isn't quite correct: whatever is passed to "-r" is used
verbatim to compare to the value read from the ADC. We need to
actually calculate the expected ADC value based on the resistance
specified.