MCPcopy Create free account
hub / github.com/BruceDevices/firmware / removeEvilWifiMenu

Function removeEvilWifiMenu

src/core/settings.cpp:498–508  ·  view source on GitHub ↗

** Function: removeEvilWifiMenu ** Handles Menu to remove evil wifi names from config list **********************************************************************/

Source from the content-addressed store, hash-verified

496** Handles Menu to remove evil wifi names from config list
497**********************************************************************/
498void removeEvilWifiMenu() {
499 options = {};
500
501 for (const auto &wifi_name : bruceConfig.evilWifiNames) {
502 options.push_back({wifi_name.c_str(), [wifi_name]() { bruceConfig.removeEvilWifiName(wifi_name); }});
503 }
504
505 options.push_back({"Cancel", [=]() { backToMenu(); }});
506
507 loopOptions(options);
508}
509
510/*********************************************************************
511** Function: setEvilEndpointCreds

Callers

nothing calls this directly

Calls 3

backToMenuFunction · 0.85
removeEvilWifiNameMethod · 0.80
loopOptionsFunction · 0.70

Tested by

no test coverage detected