From d8fd0f7ddd9d644e489d5651b6b21c542376e106 Mon Sep 17 00:00:00 2001
From: Jochen Vothknecht <jochen3120@gmail.com>
Date: Wed, 5 Jan 2022 16:12:13 +0100
Subject: [PATCH] Fixing topics

---
 CLC-qthing/SiliconTorch/FxCyanF.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/CLC-qthing/SiliconTorch/FxCyanF.cpp b/CLC-qthing/SiliconTorch/FxCyanF.cpp
index 806ee40..4730d17 100644
--- a/CLC-qthing/SiliconTorch/FxCyanF.cpp
+++ b/CLC-qthing/SiliconTorch/FxCyanF.cpp
@@ -315,30 +315,30 @@ void SiliconTorch::FxCyanF::callPacketCallback() {
 void SiliconTorch::FxCyanF::publishBaseChannel() {
   char tmp[16];
   snprintf(tmp, sizeof(tmp), "%i", this->getBaseChannel());
-  publish_message(DEVICE_NAMESPACE + "CyanLight/channel", tmp);
+  publish_message(this->genDeviceTopic("channel"), tmp);
 }
 
 void SiliconTorch::FxCyanF::publishChannelCount() {
   char tmp[16];
   snprintf(tmp, sizeof(tmp), "%i", this->getChannelCount());
-  publish_message(DEVICE_NAMESPACE + "CyanLight/channelCnt", tmp);
+  publish_message(this->genDeviceTopic("channelCnt"), tmp);
 }
 
 void SiliconTorch::FxCyanF::publishFrequency() {
   char tmp[16];
   snprintf(tmp, sizeof(tmp), "%i", this->getFrequency());
-  publish_message(DEVICE_NAMESPACE + "CyanLight/frequency", tmp);
+  publish_message(this->genDeviceTopic("frequency"), tmp);
 }
 
 void SiliconTorch::FxCyanF::publishResolution() {
   char tmp[16];
   snprintf(tmp, sizeof(tmp), "%i", this->getResolution());
-  publish_message(DEVICE_NAMESPACE + "CyanLight/resolution", tmp);
+  publish_message(this->genDeviceTopic("resolution"), tmp);
 }
 
 void SiliconTorch::FxCyanF::publishFrqRes() {
   char tmp[32];
   snprintf(tmp, sizeof(tmp), "%i%s%i", this->getFrequency(), delimiter.c_str(), this->getResolution());
-  publish_message(DEVICE_NAMESPACE + "CyanLight/frqres", tmp);
+  publish_message(this->genDeviceTopic("frqres"), tmp);
 }
 
-- 
GitLab