aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2021-07-02 00:24:25 +0200
committercbdev <cb@cbcdn.com>2021-07-02 00:24:25 +0200
commit6a3f12be67f70f07d3ae93edfd7b14c02c61f68f (patch)
tree23c3ae7fa077fbcc24a7961047b1557085ce1eb6 /backends
parent5bb4bbc08ba98bf8e65c57409040be1e74b9e6da (diff)
downloadmidimonster-6a3f12be67f70f07d3ae93edfd7b14c02c61f68f.tar.gz
midimonster-6a3f12be67f70f07d3ae93edfd7b14c02c61f68f.tar.bz2
midimonster-6a3f12be67f70f07d3ae93edfd7b14c02c61f68f.zip
Restructure core data structures
Diffstat (limited to 'backends')
-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);