mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Return when HAL_JPEG_Encode is aborted.
This commit is contained in:
parent
5c5eb9d10b
commit
3144724645
@ -3440,6 +3440,10 @@ static uint32_t JPEG_Process(JPEG_HandleTypeDef *hjpeg)
|
||||
return JPEG_PROCESS_DONE;
|
||||
}
|
||||
|
||||
if (__HAL_JPEG_GET_FLAG(hjpeg, JPEG_FLAG_COF) == RESET)
|
||||
{
|
||||
return JPEG_PROCESS_DONE;
|
||||
}
|
||||
|
||||
return JPEG_PROCESS_ONGOING;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user