mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #759 from kwagyeman/kwabena/fix_sensor_init0
First image is invalid on sensor init0.
This commit is contained in:
commit
632691ffcd
@ -206,6 +206,9 @@ void sensor_init0()
|
||||
memset(MAIN_FB(), 0, sizeof(*MAIN_FB()));
|
||||
memset(JPEG_FB(), 0, sizeof(*JPEG_FB()));
|
||||
|
||||
// Skip the first frame.
|
||||
MAIN_FB()->bpp = -1;
|
||||
|
||||
// Set default quality
|
||||
JPEG_FB()->quality = ((JPEG_QUALITY_HIGH - JPEG_QUALITY_LOW) / 2) + JPEG_QUALITY_LOW;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user