From afe7201d005b2206c4a4cce55efcba76fe7d81a8 Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Mon, 3 Jan 2022 00:33:14 +0100 Subject: [PATCH] Fixed linking --- main/CMakeLists.txt | 2 ++ main/configutils_bobby.h | 10 ++++++++++ main/configwrapper_bobby.cpp | 7 +++++++ 3 files changed, 19 insertions(+) create mode 100644 main/configutils_bobby.h create mode 100644 main/configwrapper_bobby.cpp diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index b347586..be3e06a 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -20,6 +20,7 @@ set(headers changevaluedisplay_unifiedmodelmode.h cloud.h cloudtexthelpers.h + configutils_bobby.h controller.h debugcolorhelpers.h debuginputhandler.h @@ -249,6 +250,7 @@ set(sources changevaluedisplay_unifiedmodelmode.cpp cloud.cpp cloudtexthelpers.cpp + configwrapper_bobby.cpp controller.cpp debugcolorhelpers.cpp debuginputhandler.cpp diff --git a/main/configutils_bobby.h b/main/configutils_bobby.h new file mode 100644 index 0000000..2f242d8 --- /dev/null +++ b/main/configutils_bobby.h @@ -0,0 +1,10 @@ +#pragma once +#include "sdkconfig.h" + +// 3rdparty lib includes +#include + +// local includes +#include "ledstrip.h" + +IMPLEMENT_NVS_GET_SET_ENUM(OtaAnimationModes) diff --git a/main/configwrapper_bobby.cpp b/main/configwrapper_bobby.cpp new file mode 100644 index 0000000..62b5412 --- /dev/null +++ b/main/configwrapper_bobby.cpp @@ -0,0 +1,7 @@ +#include "sdkconfig.h" + +#include "configutils_bobby.h" +#define CONFIGWRAPPER_TOSTRING_USINGS using ::toString; +#include + +INSTANTIATE_CONFIGWRAPPER_TEMPLATES(OtaAnimationModes)