mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-23 13:34:46 +00:00
Add a "Development Mode" for our plugins
This commit is contained in:
parent
bbaf5946f0
commit
040bb1d1e0
10
src/plugins/PluginDev.h
Normal file
10
src/plugins/PluginDev.h
Normal file
@ -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;
|
@ -5,6 +5,7 @@
|
|||||||
#include "Router.h"
|
#include "Router.h"
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
#include "mesh-pb-constants.h"
|
#include "mesh-pb-constants.h"
|
||||||
|
#include "plugins/PluginDev.h"
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
@ -232,8 +233,11 @@ StoreForwardPlugin::StoreForwardPlugin()
|
|||||||
without having to configure it from the PythonAPI or WebUI.
|
without having to configure it from the PythonAPI or WebUI.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (StoreForward_Dev) {
|
||||||
radioConfig.preferences.store_forward_plugin_enabled = 1;
|
radioConfig.preferences.store_forward_plugin_enabled = 1;
|
||||||
radioConfig.preferences.is_router = 1;
|
radioConfig.preferences.is_router = 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (radioConfig.preferences.store_forward_plugin_enabled) {
|
if (radioConfig.preferences.store_forward_plugin_enabled) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user