lemariva / uPyCam

Take a photo with an ESP32-CAM running MicroPython
https://lemariva.com/blog/2019/09/micropython-how-about-taking-photo-esp32
Apache License 2.0
140 stars 42 forks source link

Try to recover from failed init by deinit, retry #3

Closed krayon closed 4 years ago

krayon commented 4 years ago

This does a simple retry on fail of init() after first calling deinit(). This ensures we get another shot if the init() process failed because it was left in an unknown (or previously init()'d) state.

Fixes #2

Signed-off-by: Krayon krayon.git@qdnx.org