@@ -145,7 +145,7 @@ void LC_SampleAPReq(const CFE_SB_Buffer_t *BufPtr)
145145 /*
146146 ** Ignore AP sample requests if disabled at the application level
147147 */
148- if (LC_AppData .CurrentLCState != LC_STATE_DISABLED )
148+ if (LC_AppData .CurrentLCState != LC_AppState_DISABLED )
149149 {
150150 /*
151151 ** Range check the actionpoint array index arguments
@@ -361,20 +361,20 @@ int32 LC_HousekeepingReq(const CFE_MSG_CommandHeader_t *MsgPtr)
361361 */
362362 switch (LC_OperData .ARTPtr [TableIndex + 1 ].CurrentState )
363363 {
364- case LC_ACTION_NOT_USED :
364+ case LC_ActionPoint_NOT_USED :
365365 ByteData = LC_HKAR_STATE_NOT_USED << 6 ;
366366 break ;
367367
368- case LC_APSTATE_ACTIVE :
368+ case LC_ActionPointState_ACTIVE :
369369 ByteData = LC_HKAR_STATE_ACTIVE << 6 ;
370370 LC_OperData .HkPacket .ActiveAPs ++ ;
371371 break ;
372372
373- case LC_APSTATE_PASSIVE :
373+ case LC_ActionPointState_PASSIVE :
374374 ByteData = LC_HKAR_STATE_PASSIVE << 6 ;
375375 break ;
376376
377- case LC_APSTATE_DISABLED :
377+ case LC_ActionPointState_DISABLED :
378378 ByteData = LC_HKAR_STATE_DISABLED << 6 ;
379379 break ;
380380
@@ -383,7 +383,7 @@ int32 LC_HousekeepingReq(const CFE_MSG_CommandHeader_t *MsgPtr)
383383 ** as unused. We should never get an undefined
384384 ** action state, but we'll set to not used if we do.
385385 */
386- case LC_APSTATE_PERMOFF :
386+ case LC_ActionPointState_PERMOFF :
387387 default :
388388 ByteData = LC_HKAR_STATE_NOT_USED << 6 ;
389389 break ;
@@ -421,24 +421,24 @@ int32 LC_HousekeepingReq(const CFE_MSG_CommandHeader_t *MsgPtr)
421421 */
422422 switch (LC_OperData .ARTPtr [TableIndex ].CurrentState )
423423 {
424- case LC_ACTION_NOT_USED :
424+ case LC_ActionPoint_NOT_USED :
425425 ByteData = (ByteData | (LC_HKAR_STATE_NOT_USED << 2 ));
426426 break ;
427427
428- case LC_APSTATE_ACTIVE :
428+ case LC_ActionPointState_ACTIVE :
429429 ByteData = (ByteData | (LC_HKAR_STATE_ACTIVE << 2 ));
430430 LC_OperData .HkPacket .ActiveAPs ++ ;
431431 break ;
432432
433- case LC_APSTATE_PASSIVE :
433+ case LC_ActionPointState_PASSIVE :
434434 ByteData = (ByteData | (LC_HKAR_STATE_PASSIVE << 2 ));
435435 break ;
436436
437- case LC_APSTATE_DISABLED :
437+ case LC_ActionPointState_DISABLED :
438438 ByteData = (ByteData | (LC_HKAR_STATE_DISABLED << 2 ));
439439 break ;
440440
441- case LC_APSTATE_PERMOFF :
441+ case LC_ActionPointState_PERMOFF :
442442 default :
443443 ByteData = (ByteData | (LC_HKAR_STATE_NOT_USED << 2 ));
444444 break ;
@@ -569,9 +569,9 @@ void LC_SetLCStateCmd(const CFE_SB_Buffer_t *BufPtr)
569569
570570 switch (CmdPtr -> NewLCState )
571571 {
572- case LC_STATE_ACTIVE :
573- case LC_STATE_PASSIVE :
574- case LC_STATE_DISABLED :
572+ case LC_AppState_ACTIVE :
573+ case LC_AppState_PASSIVE :
574+ case LC_AppState_DISABLED :
575575 LC_AppData .CurrentLCState = CmdPtr -> NewLCState ;
576576 LC_AppData .CmdCount ++ ;
577577
@@ -618,9 +618,9 @@ void LC_SetAPStateCmd(const CFE_SB_Buffer_t *BufPtr)
618618 */
619619 switch (CmdPtr -> NewAPState )
620620 {
621- case LC_APSTATE_ACTIVE :
622- case LC_APSTATE_PASSIVE :
623- case LC_APSTATE_DISABLED :
621+ case LC_ActionPointState_ACTIVE :
622+ case LC_ActionPointState_PASSIVE :
623+ case LC_ActionPointState_DISABLED :
624624 break ;
625625
626626 default :
@@ -648,7 +648,7 @@ void LC_SetAPStateCmd(const CFE_SB_Buffer_t *BufPtr)
648648 {
649649 CurrentAPState = LC_OperData .ARTPtr [TableIndex ].CurrentState ;
650650
651- if ((CurrentAPState != LC_ACTION_NOT_USED ) && (CurrentAPState != LC_APSTATE_PERMOFF ))
651+ if ((CurrentAPState != LC_ActionPoint_NOT_USED ) && (CurrentAPState != LC_ActionPointState_PERMOFF ))
652652 {
653653 LC_OperData .ARTPtr [TableIndex ].CurrentState = CmdPtr -> NewAPState ;
654654 }
@@ -666,7 +666,7 @@ void LC_SetAPStateCmd(const CFE_SB_Buffer_t *BufPtr)
666666 TableIndex = CmdPtr -> APNumber ;
667667 CurrentAPState = LC_OperData .ARTPtr [TableIndex ].CurrentState ;
668668
669- if ((CurrentAPState != LC_ACTION_NOT_USED ) && (CurrentAPState != LC_APSTATE_PERMOFF ))
669+ if ((CurrentAPState != LC_ActionPoint_NOT_USED ) && (CurrentAPState != LC_ActionPointState_PERMOFF ))
670670 {
671671 /*
672672 ** Update state for single actionpoint specified
@@ -756,7 +756,7 @@ void LC_SetAPPermOffCmd(const CFE_SB_Buffer_t *BufPtr)
756756 TableIndex = CmdPtr -> APNumber ;
757757 CurrentAPState = LC_OperData .ARTPtr [TableIndex ].CurrentState ;
758758
759- if (CurrentAPState != LC_APSTATE_DISABLED )
759+ if (CurrentAPState != LC_ActionPointState_DISABLED )
760760 {
761761 /*
762762 ** Actionpoints can only be turned permanently off if
@@ -773,7 +773,7 @@ void LC_SetAPPermOffCmd(const CFE_SB_Buffer_t *BufPtr)
773773 /*
774774 ** Update state for actionpoint specified
775775 */
776- LC_OperData .ARTPtr [TableIndex ].CurrentState = LC_APSTATE_PERMOFF ;
776+ LC_OperData .ARTPtr [TableIndex ].CurrentState = LC_ActionPointState_PERMOFF ;
777777
778778 LC_AppData .CmdCount ++ ;
779779
0 commit comments