Skip to content

Add a PLUGIN_STOP function #354

@psy0rz

Description

@psy0rz

When PLUGIN_INIT is called, things like this might happen:
Plugin_052_SoftSerial = new SoftwareSerial(...);

We need a way to deallocate that memory when the user is switching around plugins. This will save memory, but also make issue-reporting more consistent: Currently some people might run into memory issues when switching between certain plugins. These issues will be vague and hard to reproduce. If we deallocate memory we can solve this.

Maybe some hardware also needs to be in a certain state before switching to another plugin. This also can be done in the PLUGIN_STOP function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions