Subversion Repositories HomeAutomation

Rev

Rev 1910 | Rev 1938 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1910 Rev 1937
Line 732... Line 732...
732
            break;
732
            break;
733
        }
733
        }
734
 
734
 
735
        case sns_irTransceive_STATE_START_TRANSMIT_PRONTO:
735
        case sns_irTransceive_STATE_START_TRANSMIT_PRONTO:
736
        {
736
        {
-
 
737
            /* Invalid once seq len? */
-
 
738
            if (irTxChannel[channel].onceSeqLen<=0) {
-
 
739
                /* Send error code. */
-
 
740
                pronto_sendResponse(channel, CAN_MODULE_ENUM_IRTRANSCEIVE_IRPRONTORESPONSE_RESPONSE_ABORTED);
-
 
741
 
-
 
742
                /* Enter idle state. */
-
 
743
                irTxChannel[channel].state = sns_irTransceive_STATE_IDLE;
-
 
744
                break;
-
 
745
            }
737
            /* Start IR transmission. */
746
            /* Start IR transmission. */
738
            if(IrTransceiver_Transmit(channel, irTxChannel[channel].txbuf, 0, irTxChannel[channel].onceSeqLen - 1, irTxChannel[channel].proto.modfreq) < 0) {
747
            if(IrTransceiver_Transmit(channel, irTxChannel[channel].txbuf, 0, irTxChannel[channel].onceSeqLen - 1, irTxChannel[channel].proto.modfreq) < 0) {
739
                /* Send error code. */
748
                /* Send error code. */
740
                pronto_sendResponse(channel, CAN_MODULE_ENUM_IRTRANSCEIVE_IRPRONTORESPONSE_RESPONSE_ABORTED);
749
                pronto_sendResponse(channel, CAN_MODULE_ENUM_IRTRANSCEIVE_IRPRONTORESPONSE_RESPONSE_ABORTED);
741
 
750