From 0197aab7d21514ec4502738de43b13fa46a4ee98 Mon Sep 17 00:00:00 2001
From: Jochen Vothknecht <jochen3120@gmail.com>
Date: Fri, 25 Mar 2022 11:24:50 +0100
Subject: [PATCH] Type stuff

---
 CLC-qthing/SiliconTorch/CyanBus.cpp | 16 ++++++++++++++++
 CLC-qthing/SiliconTorch/FxCyanF.hpp |  4 ++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/CLC-qthing/SiliconTorch/CyanBus.cpp b/CLC-qthing/SiliconTorch/CyanBus.cpp
index 73f446d..b12fd83 100644
--- a/CLC-qthing/SiliconTorch/CyanBus.cpp
+++ b/CLC-qthing/SiliconTorch/CyanBus.cpp
@@ -38,6 +38,12 @@ namespace SiliconTorch {
 
     void CyanBus::readerTask() {
       const uint8_t* header = (const uint8_t*)"fxCyan";
+      uint8_t* buffer = new uint8_t[CyanBusMTU];
+
+      enum FSM { SearchHeader };
+      FSM fsm = SearchHeader;
+
+      uint8_t headerIDX = 0;
 
       while (true) {
 
@@ -45,7 +51,17 @@ namespace SiliconTorch {
 
         vTaskDelay(420);
 
+        continue;
+
+        switch (fsm) {
+          case SearchHeader: {
+
+            break;
+          }
+        }
       }
+
+      delete buffer;
     }
 
     void CyanBus::setBaudRate(uint32_t baudRate) {
diff --git a/CLC-qthing/SiliconTorch/FxCyanF.hpp b/CLC-qthing/SiliconTorch/FxCyanF.hpp
index f15a5c7..82d5fbf 100644
--- a/CLC-qthing/SiliconTorch/FxCyanF.hpp
+++ b/CLC-qthing/SiliconTorch/FxCyanF.hpp
@@ -16,7 +16,7 @@
 
 namespace SiliconTorch {
 
-  extern const char *TAG;
+  extern const char* TAG;
 
   typedef std::function<void()> PacketHandledCallback;
   typedef std::function<float(float)> GammaCorrector;
@@ -67,7 +67,7 @@ namespace SiliconTorch {
       uint32_t baseChannel;
       uint8_t channelsConfigured = 0;
 
-      Impl::PWMChannel **channels;
+      Impl::PWMChannel** channels;
 
       ledc_timer_config_t timer_cfg;
 
-- 
GitLab