teste de publish
Diff: devices.cpp
- Revision:
- 12:254c32b4ece7
- Parent:
- 11:013a2ab0c12e
- Child:
- 13:c1122e7b0b36
--- a/devices.cpp Wed Jan 03 14:06:46 2018 +0000 +++ b/devices.cpp Sat Jan 27 22:15:58 2018 +0000 @@ -1094,7 +1094,8 @@ uint8_t indexAlarms; char *pChar; bool commandExecOk = true; - + uint8_t i; + //Variáveis comuns; uint8_t param1; uint8_t param2; @@ -1247,7 +1248,14 @@ //printf("\r\nPacote IR <%s>.\r\n",pTipoComando); deserializaPacoteIR(pTipoComando); //printf("Deserializado.\r\nInicio do envio.\r\n"); - enviaComandoIR(param1,param2); + if(param1){ + enviaComandoIR(param1,param2); + }else{ + for(i=33;i<41;i++){ + enviaComandoIR(i,param2); + if(i!=40){osDelay(100);} + } + } //printf("Fim do envio.\r\n"); break;