GPIO: always use pull-up for logic input (#27321)

This commit is contained in:
premultiply 2026-02-11 12:47:49 +01:00 • committed by GitHub
parent 26d6464334
commit e30fa4ba99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,6 +46,7 @@ func NewGpioPluginFromConfig(ctx context.Context, other map[string]any) (Plugin,
switch cc.Function {
case GpioTypeRead:
p.pin.Input()
p.pin.PullUp()
case GpioTypeWrite:
p.pin.Output()
default: