diff --git a/src/plugins/PluginDev.h b/src/plugins/PluginDev.h new file mode 100644 index 00000000..f0fccb8c --- /dev/null +++ b/src/plugins/PluginDev.h @@ -0,0 +1,10 @@ +#pragma once + +/* + * To developers: + * Use this to enable / disable features in your plugin that you don't want to risk checking into GitHub. + * + */ + +// Enable development more for StoreForwardPlugin +bool StoreForward_Dev = false; \ No newline at end of file diff --git a/src/plugins/esp32/StoreForwardPlugin.cpp b/src/plugins/esp32/StoreForwardPlugin.cpp index df377397..f578ded8 100644 --- a/src/plugins/esp32/StoreForwardPlugin.cpp +++ b/src/plugins/esp32/StoreForwardPlugin.cpp @@ -5,6 +5,7 @@ #include "Router.h" #include "configuration.h" #include "mesh-pb-constants.h" +#include "plugins/PluginDev.h" #include #include @@ -232,8 +233,11 @@ StoreForwardPlugin::StoreForwardPlugin() without having to configure it from the PythonAPI or WebUI. */ - radioConfig.preferences.store_forward_plugin_enabled = 1; - radioConfig.preferences.is_router = 1; + + if (StoreForward_Dev) { + radioConfig.preferences.store_forward_plugin_enabled = 1; + radioConfig.preferences.is_router = 1; + } if (radioConfig.preferences.store_forward_plugin_enabled) {