这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public PigpioDigitalOutputHandler(GPIOOutputConfiguration configuration, JPigpio
throw new NoGpioIdException();
}
this.gpio = new GPIO(jPigpio, gpioId, JPigpio.PI_OUTPUT);
if (configuration.invert) {
updateStatus.accept(OnOffType.ON);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this line be added ? Because inverted means that pin should be by default in state 1, but this means OFF not ON, because it is inverted .

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I'm not sure on this on either. Maybe not setting updateStatus would be the correct thing to do. What do you think @nils-bauer ?

Copy link
Contributor

@lsiepel lsiepel Mar 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As 6 months have passsed, is this properly addressed ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was hoping that this entire PR could be replaced with #13643 and still keep my fingers crossed that it will be merged over the next days.

gpio.setValue(true);
}
}

@Override
Expand Down