Skip to content

Commit

Permalink
Merge pull request #188 from arkedge/feature/PL_BC_LIST_CLEARED_el
Browse files Browse the repository at this point in the history
[v3.10.1 Backport] PL_BC_LIST_CLEARED を level high で EL 登録する
  • Loading branch information
meltingrabbit authored Nov 9, 2023
2 parents 4a8177a + c0e8afd commit 04d1ddb
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions applications/timeline_command_dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ CCP_CmdRet Cmd_TLCD_DEPLOY_BLOCK(const CommonCmdPacket* packet)
TLCD_ID id = (TLCD_ID)CCP_get_param_from_packet(packet, 0, uint8_t);
bct_id_t block_no = CCP_get_param_from_packet(packet, 1, bct_id_t);
PL_ACK ack;
const uint32_t note = ((0x000000ff & id) << 24) | (0x00ffffff & block_no);

if (CCP_get_param_len(packet) != (1 + SIZE_OF_BCT_ID_T))
{
Expand All @@ -276,12 +277,20 @@ CCP_CmdRet Cmd_TLCD_DEPLOY_BLOCK(const CommonCmdPacket* packet)

ack = PL_deploy_block_cmd(&(PH_tl_cmd_list[id]), block_no, TMGR_get_master_total_cycle());

if (ack != PL_SUCCESS)
if (ack == PL_BC_LIST_CLEARED)
{
EL_record_event((EL_GROUP)EL_CORE_GROUP_TLCD_DEPLOY_BLOCK,
(uint32_t)PL_BC_LIST_CLEARED,
EL_ERROR_LEVEL_HIGH,
note);
return CCP_make_cmd_ret(CCP_EXEC_ILLEGAL_CONTEXT, (uint32_t)ack);
}
else if (ack != PL_SUCCESS)
{
EL_record_event((EL_GROUP)EL_CORE_GROUP_TLCD_DEPLOY_BLOCK,
(uint32_t)ack,
EL_ERROR_LEVEL_LOW,
(uint32_t)( ((0x000000ff & id) << 24) | (0x00ffffff & block_no) ));
note);
if (ack == PL_BC_TIME_ADJUSTED)
{
return CCP_make_cmd_ret(CCP_EXEC_SUCCESS, (uint32_t)ack);
Expand Down

0 comments on commit 04d1ddb

Please sign in to comment.