aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/mqtt.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/mqtt.c')
-rw-r--r--backends/mqtt.c2
1 files changed, 1 insertions, 1 deletions
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);