mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Handle default case in set_pixformat
This commit is contained in:
parent
d29dc4db7f
commit
b21018f39e
@ -504,6 +504,8 @@ int sensor_set_pixformat(enum sensor_pixformat pixformat)
|
||||
case PIXFORMAT_GRAYSCALE:
|
||||
fb->bpp = 1;
|
||||
break;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (pixformat==PIXFORMAT_GRAYSCALE) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user