CMD0x34_Request_CtrlProbeLed.c 553 B

123456789101112131415161718192021
  1. #include "CommandsDefine.h"
  2. #include "ProjectConfig.h"
  3. #include "Helper.h"
  4. #include "Probe.h"
  5. void CMD0x34_Request_CtrlProbeLed_process(u8 *pData,u16 dataLen,u8 bIsContentBitInverted_Recv,u8 bIsContentBitInverted_SendBack)
  6. {
  7. #ifdef RUNNING_WHERE_AT_BOOT
  8. Command_SendbackErrorMessage(Error0x02_CannotRunAtBoot,1);
  9. #else
  10. u16 exceptLength=1;
  11. if (!Helper_CheckRightRecvedData(pData,dataLen,exceptLength,bIsContentBitInverted_Recv))
  12. {
  13. Command_SendbackErrorMessage(Error0x02_CannotRunAtBoot,1);
  14. return;
  15. }
  16. Probes_LedCtrl(pData[0]);
  17. #endif
  18. }