Fixed bug about sending show.
This commit is contained in:
parent
708b1f0427
commit
93ce51c6c3
|
@ -397,7 +397,7 @@ static void update_rec_time(void)
|
||||||
lv_obj_set_hidden(label_maxtime_scr_uiflowmovie,true);
|
lv_obj_set_hidden(label_maxtime_scr_uiflowmovie,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
lv_label_set_text_fmt(label_rec_time_scr_uiflowmovie, "%02d:%02d:%02d", rec_sec / 3600, (rec_sec % 3600) / 60, (rec_sec % 3600) % 60);
|
lv_label_set_text_fmt(label_rec_time_scr_uiflowmovie, "%02d:%02d:%02d", rec_sec / 3600, (rec_sec % 3600) / 60, (rec_sec % 3600) % 60 + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void update_wifi(void)
|
static void update_wifi(void)
|
||||||
|
|
|
@ -59,6 +59,7 @@ static void task_update_icons_timer_cb(lv_task_t* task);
|
||||||
#define LONG_PRESS_INTERVAL 500
|
#define LONG_PRESS_INTERVAL 500
|
||||||
static unsigned long KeyLeftPressingTimeMs = 0;
|
static unsigned long KeyLeftPressingTimeMs = 0;
|
||||||
static unsigned long KeyDownPressingTimeMs = 0;
|
static unsigned long KeyDownPressingTimeMs = 0;
|
||||||
|
static int gSendingStatus = FILE_SENDING_GUI_END;
|
||||||
|
|
||||||
#define SENDING_KEEP_SHOW -1
|
#define SENDING_KEEP_SHOW -1
|
||||||
#define SENDING_NOT_SHOW 0
|
#define SENDING_NOT_SHOW 0
|
||||||
|
@ -607,6 +608,10 @@ static void update_4g_module_icon(void)
|
||||||
lv_obj_set_hidden(label_sim_scr_uiflowphoto, true);
|
lv_obj_set_hidden(label_sim_scr_uiflowphoto, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// if(sf_cardv_4G_status_get() == SF_4G_SENDING)
|
||||||
|
// {
|
||||||
|
|
||||||
|
// }
|
||||||
const int EMPTY_IMAGE = 0;
|
const int EMPTY_IMAGE = 0;
|
||||||
lv_plugin_res_id res[] = {
|
lv_plugin_res_id res[] = {
|
||||||
EMPTY_IMAGE,
|
EMPTY_IMAGE,
|
||||||
|
@ -1699,6 +1704,7 @@ void UIFlowPhoto_UpdateInfo(lv_obj_t* obj, const LV_USER_EVENT_NVTMSG_DATA* msg)
|
||||||
static void sf_show_send_text(lv_obj_t* obj, const unsigned short status)
|
static void sf_show_send_text(lv_obj_t* obj, const unsigned short status)
|
||||||
{
|
{
|
||||||
#define SENDING_KEEP_SHOW_TIME_S 3
|
#define SENDING_KEEP_SHOW_TIME_S 3
|
||||||
|
gSendingStatus = FILE_SENDING_GUI_END;
|
||||||
switch (status)
|
switch (status)
|
||||||
{
|
{
|
||||||
case FILE_SENDING_GUI_START_SENDING:
|
case FILE_SENDING_GUI_START_SENDING:
|
||||||
|
@ -1706,6 +1712,7 @@ static void sf_show_send_text(lv_obj_t* obj, const unsigned short status)
|
||||||
lv_obj_set_hidden(label_sim_scr_uiflowphoto, false);
|
lv_obj_set_hidden(label_sim_scr_uiflowphoto, false);
|
||||||
lv_label_set_text(label_sim_scr_uiflowphoto, "Sending ... ");
|
lv_label_set_text(label_sim_scr_uiflowphoto, "Sending ... ");
|
||||||
SendMsgShow = SENDING_KEEP_SHOW;
|
SendMsgShow = SENDING_KEEP_SHOW;
|
||||||
|
gSendingStatus = FILE_SENDING_GUI_START_SENDING;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case FILE_SENDING_GUI_STOP_SENDING:
|
case FILE_SENDING_GUI_STOP_SENDING:
|
||||||
|
@ -2028,7 +2035,7 @@ void UIFlowPhotoEventCallback(lv_obj_t* obj, lv_event_t event)
|
||||||
|
|
||||||
case LV_EVENT_KEY:
|
case LV_EVENT_KEY:
|
||||||
{
|
{
|
||||||
if (PHOTO_ST_CAPTURE == gPhotoData.State)
|
if (PHOTO_ST_CAPTURE == gPhotoData.State || FILE_SENDING_GUI_START_SENDING == gSendingStatus)
|
||||||
{
|
{
|
||||||
printf("PHOTO_ST_CAPTURE not handl key event.\n");
|
printf("PHOTO_ST_CAPTURE not handl key event.\n");
|
||||||
break;
|
break;
|
||||||
|
@ -2041,7 +2048,7 @@ void UIFlowPhotoEventCallback(lv_obj_t* obj, lv_event_t event)
|
||||||
}
|
}
|
||||||
case LV_USER_EVENT_KEY_RELEASE:
|
case LV_USER_EVENT_KEY_RELEASE:
|
||||||
{
|
{
|
||||||
if (PHOTO_ST_CAPTURE == gPhotoData.State)
|
if (PHOTO_ST_CAPTURE == gPhotoData.State || FILE_SENDING_GUI_START_SENDING == gSendingStatus)
|
||||||
{
|
{
|
||||||
printf("PHOTO_ST_CAPTURE not handl key event.\n");
|
printf("PHOTO_ST_CAPTURE not handl key event.\n");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user