Skip to content

Error when reinitializing WiFi after deinitialization with WiFi.mode( WIFI_MODE_NULL ) #4842

Closed
@GiovanniCmpaner

Description

@GiovanniCmpaner

Previous issue: 4421
Even after fix 80e9e42, I'm still getting:

[ 10769][V][WiFiGeneric.cpp:315] _arduino_event_cb(): AP Started
...
[ 10800][E][WiFiGeneric.cpp:983] mode(): Could not set mode! 12289

This line:

lowLevelInitDone = esp_wifi_deinit() == ESP_OK;

Should logically be:
lowLevelInitDone = not (esp_wifi_deinit() == ESP_OK);

As if deinit is successful, init flag should be false and not true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions