Skip to content

[Dallas] Fix Dallas sensor not being read if optional pin unset#3437

Merged
TD-er merged 1 commit into
letscontrolit:megafrom
TD-er:bugfix/Dallas_optional_pin_unset
Dec 22, 2020
Merged

[Dallas] Fix Dallas sensor not being read if optional pin unset#3437
TD-er merged 1 commit into
letscontrolit:megafrom
TD-er:bugfix/Dallas_optional_pin_unset

Conversation

@TD-er
Copy link
Copy Markdown
Member

@TD-er TD-er commented Dec 22, 2020

A recent feature addition allowed for an optional separation of RX and TX pin for using Dallas sensors on a Shelly with an isolator board.
This still works with using only 1 pin, but not if you set the optional pin to "None".

This fixes this inconvenience by just copying the optional pin nr from the standard pin when initializing the sensor. (it is not duplicating it upon saving as that may be confusing)

A recent feature addition allowed for an optional separation of RX and TX pin for using Dallas sensors on a Shelly with an isolator board.
This still works with using only 1 pin, but not if you set the optional pin to "None".

This fixes this inconvenience by just copying the optional pin nr from the standard pin when initializing the sensor. (it is not duplicating it upon saving as that may be confusing)
@TD-er TD-er merged commit c530b08 into letscontrolit:mega Dec 22, 2020
@TD-er TD-er deleted the bugfix/Dallas_optional_pin_unset branch December 22, 2020 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants