Skip to content

Commit

Permalink
Update MaintenanceManager.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gomathishankar37 authored Oct 24, 2024
1 parent 19fcd38 commit 934ad68
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions MaintenanceManager/MaintenanceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ namespace WPEFramework {
MaintenanceManager::m_task_map[task_names_foreground[0].c_str()] = false;
MaintenanceManager::m_task_map[task_names_foreground[1].c_str()] = false;
MaintenanceManager::m_task_map[task_names_foreground[2].c_str()] = false;
MaintenanceManager::m_task_map[task_names_foreground[3].c_str()] = false;

#if defined(ENABLE_WHOAMI)
MaintenanceManager::m_param_map[kDeviceInitContextKeyVals[0].c_str()] = TR181_PARTNER_ID;
Expand Down Expand Up @@ -1271,17 +1270,17 @@ namespace WPEFramework {
break;
case MAINT_RFC_INPROGRESS:
m_task_map[task_names_foreground[0].c_str()] = true;
/*will be set to false once COMEPLETE/ERROR received for RFC*/
/* will be set to false once COMPLETE/ERROR is received for RFC*/
LOGINFO(" RFC already IN PROGRESS -> setting m_task_map of RFC to true \n");
break;
case MAINT_FWDOWNLOAD_INPROGRESS:
m_task_map[task_names_foreground[1].c_str()] = true;
/*will be set to false once COMEPLETE/ERROR received for FWDOWNLOAD*/
/* will be set to false once COMPLETE/ERROR is received for FWDOWNLOAD*/
LOGINFO(" FWDOWNLOAD already IN PROGRESS -> setting m_task_map of FWDOWNLOAD to true \n");
break;
case MAINT_LOGUPLOAD_INPROGRESS:
m_task_map[task_names_foreground[2].c_str()] = true;
/*will be set to false once COMEPLETE/ERROR received for LOGUPLOAD*/
/* will be set to false once COMPLETE/ERROR is received for LOGUPLOAD*/
LOGINFO(" LOGUPLOAD already IN PROGRESS -> setting m_task_map of LOGUPLOAD to true \n");
break;
default:
Expand All @@ -1296,8 +1295,8 @@ namespace WPEFramework {
}

LOGINFO(" BITFIELD Status : %x", g_task_status);
/* Send the updated status only if all task completes execution
* until that we say maintenance started */
/* Send the updated status only if all tasks complete execution
* Until that we say maintenance started */
if ((g_task_status & TASKS_COMPLETED) == TASKS_COMPLETED)
{
if ((g_task_status & ALL_TASKS_SUCCESS) == ALL_TASKS_SUCCESS)
Expand Down

0 comments on commit 934ad68

Please sign in to comment.