fix static initializer bug with mesh plugins

This commit is contained in:
Kevin Hester
2020-11-28 13:25:03 +08:00
parent 0b0d293a66
commit 5138aff4b2
3 changed files with 25 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ class MeshPlugin
{
const char *name;
static std::vector<MeshPlugin *> plugins;
static std::vector<MeshPlugin *> *plugins;
public:
/** Constructor
@@ -30,7 +30,7 @@ class MeshPlugin
* Initialize your plugin. This setup function is called once after all hardware and mesh protocol layers have
* been initialized
*/
virtual void setup() {}
virtual void setup();
/**
* @return true if you want to receive the specified portnum