Preview error handle

This commit is contained in:
Krad
2022-06-02 14:01:16 +08:00
parent b34a2d965c
commit 53c92055a6
4 changed files with 16 additions and 4 deletions

View File

@@ -120,7 +120,15 @@ const size_t Col = 140;
const char* FRAME_FILE_PATH_1 = "./img1_v2.bin";
const char* FRAME_FILE_PATH_2 = "./pre_image.bin";
int previewCount = 0;
const char* GetPreviewData() {
previewCount++;
if (previewCount>3){
status = READY;
innerCallback("22222");
return NULL;
}
FILE* file;
preivew_change_flag++;
preivew_change_flag = preivew_change_flag % 2;