Subversion Repositories HomeAutomation

Rev

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

Rev 1941 Rev 1944
Line 120... Line 120...
120
    msg.Data[1] = 0xF0;
120
    msg.Data[1] = 0xF0;
121
    msg.Data[2] = (uint8_t)responseValue;
121
    msg.Data[2] = (uint8_t)responseValue;
122
    while (StdCan_Put(&msg) != StdCan_Ret_OK) {}
122
    while (StdCan_Put(&msg) != StdCan_Ret_OK) {}
123
    _delay_ms(1);
123
    _delay_ms(1);
124
}
124
}
-
 
125
 
-
 
126
static uint8_t prontoAllocatedTxChannel = -1;
125
 
127
 
126
#if sns_irTransceive_PRONTO_SUPPORT==1
128
#if sns_irTransceive_PRONTO_SUPPORT==1
127
volatile uint32_t sns_irTransceive_LastPronto=0;
129
volatile uint32_t sns_irTransceive_LastPronto=0;
128
 
130
 
129
static uint8_t prontoAllocatedTxChannel = -1;
-
 
130
/* is any channel transmitting (or preparing to transmit) pronto? */
131
/* is any channel transmitting (or preparing to transmit) pronto? */
131
static inline int8_t prontoChannelIsAllocated(void)
132
static inline int8_t prontoChannelIsAllocated(void)
132
{
133
{
133
    if (prontoAllocatedTxChannel >= 0 &&
134
    if (prontoAllocatedTxChannel >= 0 &&
134
        prontoAllocatedTxChannel < IR_SUPPORTED_NUM_CHANNELS &&
135
        prontoAllocatedTxChannel < IR_SUPPORTED_NUM_CHANNELS &&