mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-22 23:26:49 -08:00
Trying to fix mac problems
This commit is contained in:
@@ -60,6 +60,10 @@ void Settings::load() {
|
||||
prnt(S_SETTINGS_LOADED);
|
||||
prntln(FILE_PATH);
|
||||
|
||||
// check and fix mac
|
||||
if(!macValid(macSt)) getRandomMac(macSt);
|
||||
if(!macValid(macAP)) getRandomMac(macAP);
|
||||
|
||||
save(true); // force saving
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ extern bool strToMac(String macStr, uint8_t* mac);
|
||||
extern void setWifiChannel(uint8_t ch);
|
||||
extern String fixUtf8(String str);
|
||||
extern void copyWebFiles(bool force);
|
||||
extern bool macValid(uint8_t* mac);
|
||||
|
||||
class Settings {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user