diff --git a/config.go b/config.go index 92cb3f9..362583f 100644 --- a/config.go +++ b/config.go @@ -12,10 +12,10 @@ type Sensor struct { Alias string `yaml:"alias"` HighTemp float64 `yaml:"hightemp"` LowTemp float64 `yaml:"lowtemp"` - HeatGpio int32 `yaml:"heatgpio"` + HeatGPIO int32 `yaml:"heatgpio"` HeatPullup bool `yaml:"heatpullup"` HeatMinutes int32 `yaml:"heatminutes"` - CoolGpio int32 `yaml:"coolgpio"` + CoolGPIO int32 `yaml:"coolgpio"` CoolPullup bool `yaml:"coolpullup"` CoolMinutes int32 `yaml:"coolminutes"` } diff --git a/config_test.go b/config_test.go index 83ac804..06ca013 100644 --- a/config_test.go +++ b/config_test.go @@ -12,10 +12,10 @@ func Test_LoadConfig(t *testing.T) { Alias: "fermenter", HighTemp: 8, LowTemp: 4, - HeatGpio: 5, + HeatGPIO: 5, HeatPullup: true, HeatMinutes: 5, - CoolGpio: 17, + CoolGPIO: 17, CoolPullup: false, CoolMinutes: 10}