Skip to content

NVS: boot/splash resets upon crash #227

Open
@sebastius

Description

@sebastius

I want to autoload an app (wiki_infotag) so i set:

badge.nvs_set_str('boot', 'splash', 'wiki_infotag')

Whenever the app crashes the NVS apparently clears too. That is part of the boot.py behavior:

if splash == badge.nvs_get_str('boot', 'splash', 'splash') and splash != 'splash': badge.nvs_erase_key('boot', 'splash')

Any advice on how to cope with this? Do we still need this auto-reset function since we have safe-mode?

An ugly work-around would be to add in a service to the app that adds this NVS string and reboots the system. I'd really like to avoid such hackery ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions