From 6a3f12be67f70f07d3ae93edfd7b14c02c61f68f Mon Sep 17 00:00:00 2001 From: cbdev Date: Fri, 2 Jul 2021 00:24:25 +0200 Subject: Restructure core data structures --- backends/mqtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends') diff --git a/backends/mqtt.c b/backends/mqtt.c index da4bf38..6bc366e 100644 --- a/backends/mqtt.c +++ b/backends/mqtt.c @@ -414,7 +414,7 @@ static int mqtt_configure_channel(instance* inst, char* option, char* value){ if(!configure //if configuring scale, no other config is possible || (!config.discrete && data->channel[configure->ident].values) - //if configuring discrete, the previous one can't be a a scale + //if configuring discrete, the previous one can't be a scale || (config.discrete && data->channel[configure->ident].values && !data->channel[configure->ident].value[0].discrete)){ LOGPF("Failed to configure topic %s.%s", inst->name, option); free(config.discrete); -- cgit v1.2.3