Commit cbca7174 authored by Mick Michalski's avatar Mick Michalski
Browse files

Changes to server_hawkbit

parent b84008df
......@@ -900,11 +900,13 @@ server_op_res_t server_install_update(void)
}
}
/*
if ((result = save_state((char *)STATE_KEY, STATE_INSTALLED)) !=
SERVER_OK) {
ERROR("Cannot persistently store update state.\n");
goto cleanup;
}
*/
if (server_send_deployment_reply(
action_id, json_data_chunk_max, json_data_chunk_count,
......@@ -914,6 +916,14 @@ server_op_res_t server_install_update(void)
ERROR("Error while reporting installation success to "
"server.\n");
}
if (server_send_deployment_reply(
action_id, 0, 0, reply_status_result_finished.success,
reply_status_execution.closed,
(const char *)"Skipped Update.") != SERVER_OK) {
ERROR("Error while reporting installation progress to "
"server.\n");
}
cleanup:
if (channel_data.json_reply != NULL &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment