Skip to content

Notification settings stack fix #1906

@s0170071

Description

@s0170071

@TD-er would you be please so kind and replace in webserver.ino three occurences of :

NotificationSettingsStruct NotificationSettings;
with

    NotificationSettingsStruct* NotificationSettingsStruct_ptr =new NotificationSettingsStruct;
    NotificationSettingsStruct& NotificationSettings = *NotificationSettingsStruct_ptr ;

that moves that temporary struct to heap. Clicking the notifications tab and setting an email notifications brings the stack down to 1700 (was 500 before)
Don't forget to delete() afterwards.
Sorry for asking, but creating pull requests takes me at least half an hour ;-)

Thanks.

Edit:
There are more potential replacements like

ControllerSettingsStruct ControllerSettings;
with

    ControllerSettingsStruct* ControllerSettings_ptr =new ControllerSettingsStruct;
    ControllerSettingsStruct& ControllerSettings = *ControllerSettings_ptr ;

There are some more hidden in the code, e.g. comtrollers. You find them best if you search for "ControllerSettingsStruct " with a space char at the end of the search string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category: BuildRelated to building/IDE/releasesCategory: StabiliyThings that work, but not as long as desiredType: BugConsidered a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions