espressif / esp32-camera

Apache License 2.0
1.84k stars 627 forks source link

Compilation problem with ov5640.c to generate micropython firmware #169

Closed remibert closed 2 years ago

remibert commented 4 years ago

Hello, When I recompile micropython for esp32cam, I get a mix error between a float and int. Line 189, file ov5640.c : unsigned int REFIN = xclk / pll_pre_div; I added a cast to compile it, because I don't need this driver for the esp32cam. Probably a better solution should be to multiply by 10 all data in array and divide after by 10, and then replace the float by int. Regards.

github-actions[bot] commented 2 years ago

This issue appears to be stale. Please close it if its no longer valid.