From 08b52d60a118b1c3e9673e093aeafe2e1327cebd Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 10 Oct 2021 16:25:07 +0200 Subject: [PATCH] Openwb: fix invalid timeout errors --- charger/openwb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charger/openwb.go b/charger/openwb.go index 0e719fe7a..2a0f0b6f5 100644 --- a/charger/openwb.go +++ b/charger/openwb.go @@ -63,7 +63,7 @@ func NewOpenWB(log *util.Logger, mqttconf mqtt.Config, id int, topic string, p1p // getters boolG := func(topic string) func() (bool, error) { - g := provider.NewMqtt(log, client, topic, 1, timeout).BoolGetter() + g := provider.NewMqtt(log, client, topic, 1, 0).BoolGetter() return func() (val bool, err error) { if val, err = g(); err == nil { _, err = timer() @@ -73,7 +73,7 @@ func NewOpenWB(log *util.Logger, mqttconf mqtt.Config, id int, topic string, p1p } floatG := func(topic string) func() (float64, error) { - g := provider.NewMqtt(log, client, topic, 1, timeout).FloatGetter() + g := provider.NewMqtt(log, client, topic, 1, 0).FloatGetter() return func() (val float64, err error) { if val, err = g(); err == nil { _, err = timer()