- fix PinPull optional configuration

This commit is contained in:
2022-12-31 17:30:22 +01:00
parent 851e1c0ffb
commit 78c9247396
2 changed files with 12 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ type PinConfig struct {
PinNumber int `yaml:"number"`
Name string `yaml:"name"`
Direction PinDirection `yaml:"direction"`
PullConfig PinPull `yaml:"pull-config"`
PullConfig *PinPull `yaml:"pull-config"`
InitialState *PinCommand `yaml:"initial-state"`
SendPollingEvents *bool `yaml:"send-polling-events"`
SendChangeEvents *bool `yaml:"send-change-events"`