Skip to content

Commit

Permalink
Fix bitmap streaming bpp value check.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwagyeman committed Jun 22, 2018
1 parent 9a61a73 commit e925b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omv/framebuffer.c
Expand Up @@ -55,7 +55,7 @@ void fb_update_jpeg_buffer()
// Unlock the framebuffer mutex
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
if (mutex_try_lock(&JPEG_FB()->lock, MUTEX_TID_OMV)) {
// Set JPEG src and dst images.
Expand Down

0 comments on commit e925b1a

Please sign in to comment.