Runtime error: sensor timeout!

Error occurs after several seconds of operation. Code is very simple.

import sensor
img = sensor.snapshot()
img = sensor.snapshot()

Factory reset did not help.
M7 version, firmware 2.60 latest.

Hi, you need to call sensor.reset() and set the frame size and format before doing anything else. See the example.