maximkulkin / esp-wifi-config

Library to bootstrap WiFi-enabled accessories WiFi config
MIT License
54 stars 30 forks source link

prevent to write to SDK settings if no change needed #4

Open HomeACcessoryKid opened 6 years ago

HomeACcessoryKid commented 6 years ago

Considering I cannot find any proof that the SDK protects itself, we should prevent waring out the flash by writing every time the device boots. Ignore this if proof can be found that the SDK protects itself.

maximkulkin commented 6 years ago

Can you move logic of setting sdk wifi config only if changed into a separate function, so it does not clutter other code, making it less readable.