- Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Type: EnhancementImprove something already presentImprove something already present
Description
Especially with the sometimes unstable sonoffs it can take a long time until the configured boot states for GPIOs get applied.
Found the reason in ESPEasy.ino (line 564ff): hardwareInit() is run after the wifi stuff is done.
I use several sonoffs buried in lamps, they are powered through the original (wall)switches. This way the lamps can be used in the normal way. Just the delay between flipping the switch and the lamp coming on is irritating (especially if the wifi connection fails three times until AP mode is firered) and I think it would greatly improve the WifeAcceptanceFactor ;) to do the hardware init first.
Is there technically anything speaking against moving hardwareInit() a few lines up?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: EnhancementImprove something already presentImprove something already present