]> granicus.if.org Git - esp-idf/commit
examples: gracefully shut down Wi-Fi before restart
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 7 Oct 2019 14:46:25 +0000 (16:46 +0200)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 7 Oct 2019 14:47:49 +0000 (16:47 +0200)
commit28a440521e9f6c6f6c5cec5f583fb32bdc41fd97
treeaac3892ce4ffc8f1277d3b1dc129ede1cf3661b6
parentf0563b384478d9abe4956084ee4b93df2339e05b
examples: gracefully shut down Wi-Fi before restart

This fixes the issue that if Wi-Fi is stopped from a shutdown handler,
the code in connect.c tries to reconnect, and fails because Wi-Fi is
already stopped.
Also make the error check in connect.c less strict.
examples/common_components/protocol_examples_common/connect.c