Skip to content

Commit

Permalink
fixed a bug not showing the name on TFT.
Browse files Browse the repository at this point in the history
  • Loading branch information
aniktash committed Aug 3, 2023
1 parent 0ab7917 commit 3e04104
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Examples/MAX78000/CNN/facial_recognition/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ extern void SD_Init(void);
extern volatile uint8_t face_detected;
extern int reload_faceid;
extern int reload_facedet;
extern int8_t prev_decision;
mxc_uart_regs_t *CommUart;
#ifdef TFT_ENABLE
area_t area = { 50, 290, 180, 30 };
Expand Down Expand Up @@ -210,6 +211,7 @@ int main(void)
MXC_TFT_ClearArea(&area, 4);
MXC_TFT_SetRotation(ROTATE_270);
undetect_count = 0;
prev_decision = -5;
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion Examples/MAX78000/CNN/facial_recognition/src/faceID.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static int font = (int)&SansSerif16x16[0];
#endif
#endif //#ifdef TFT_ENABLE

static int8_t prev_decision = -2;
int8_t prev_decision = -2;
static int8_t decision = -2;
extern uint8_t box[4]; // x1, y1, x2, y2

Expand Down

0 comments on commit 3e04104

Please sign in to comment.