mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #358 from kwagyeman/bitmap_streaming
Fix bitmap streaming bpp value check.
This commit is contained in:
commit
560c190908
@ -55,7 +55,7 @@ void fb_update_jpeg_buffer()
|
|||||||
// Unlock the framebuffer mutex
|
// Unlock the framebuffer mutex
|
||||||
mutex_unlock(&JPEG_FB()->lock, MUTEX_TID_OMV);
|
mutex_unlock(&JPEG_FB()->lock, MUTEX_TID_OMV);
|
||||||
}
|
}
|
||||||
} else if ((MAIN_FB()->bpp > 0) && JPEG_FB()->enabled) {
|
} else if ((MAIN_FB()->bpp >= 0) && JPEG_FB()->enabled) {
|
||||||
// Lock FB
|
// Lock FB
|
||||||
if (mutex_try_lock(&JPEG_FB()->lock, MUTEX_TID_OMV)) {
|
if (mutex_try_lock(&JPEG_FB()->lock, MUTEX_TID_OMV)) {
|
||||||
// Set JPEG src and dst images.
|
// Set JPEG src and dst images.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user