Skip to content
Snippets Groups Projects
Commit ee391920 authored by fxk8y's avatar fxk8y :spider:
Browse files

Adding stack-extending task-solution to fix a stacking-smooshy-smashy problem :smirk:

parent 64c80c66
No related branches found
No related tags found
No related merge requests found
......@@ -10,13 +10,11 @@
#include "CyanLight.hpp"
#include "SiliconTorch/FxCyanF.hpp"
#include "SpiderLib/NumberTypes.hpp"
#include <SpiderLib.hpp>
// ### LIBS FOR TESTING ###
#include <cstdlib>
//#include "SpiderLib/SNTP.hpp"
#include "SpiderLib/Util.hpp"
#include "SiliconTorch/CyanBus.hpp"
......@@ -45,7 +43,7 @@ SiliconTorch::CyanBus::CyanBus* cyanBus = NULL;
//SiliconTorch::FxPublish::FxPublish* fxPub = NULL;
SiliconTorch::FxCyanRGB8::FxCyanRGB8* cyanRGB = NULL;
CyanLight::CyanLightControl* ctrl;
CyanLight::CyanLightControl* ctrl = NULL;
......@@ -80,22 +78,13 @@ void device_main() {
// TODO: ???
// Trigger singleton initialization
SiliconTorch::NVSExplorer::NVSExplorer::instance();
// Do it in another task do control stack size
new SpiderLib::Util::LambdaTask([&]() {
// Trigger singleton initialization
SiliconTorch::NVSExplorer::NVSExplorer::instance();
//std::set<std::string> namespaces = SiliconTorch::NVSExplorer::NVSExplorer::instance().listNamespaces();
//std::string _ns = SiliconTorch::NVSExplorer::toString(namespaces, " ~=[]=~ ");
//ESP_LOGW("__SET__", "Listing Namespaces: %s", _ns.c_str());
ctrl = new CyanLight::CyanLightControl(0);
// auto fxCyanF = (SiliconTorch::FxCyanF::FxCyanF) *ctrl;
// SiliconTorch::FxCyanF::configureFromNVS(fxCyanF);
SiliconTorch::FxCyanF::configureFromNVS();
});
qthing::enable_wifi();
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment