Subversion Repositories HomeAutomation

Rev

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

Rev 2199 Rev 2200
Line 19... Line 19...
19
    if (len > sns_rfTransceive_MIN_NUM_PULSES)
19
    if (len > sns_rfTransceive_MIN_NUM_PULSES)
20
    {
20
    {
21
        rfRxChannel_newData = TRUE;
21
        rfRxChannel_newData = TRUE;
22
        rfRxChannel_len = len;
22
        rfRxChannel_len = len;
23
        rfRxChannel_index = index;
23
        rfRxChannel_index = index;
-
 
24
//gpio_set_pin(EXP_B);
24
    }
25
    }
25
#endif
26
#endif
26
}
27
}
27
#endif
28
#endif
28
 
29
 
Line 169... Line 170...
169
                cli();
170
                cli();
170
                rfRxChannel_newData = FALSE;
171
                rfRxChannel_newData = FALSE;
171
                sei();
172
                sei();
172
                /* Let protocol driver parse and then send on CAN */
173
                /* Let protocol driver parse and then send on CAN */
173
                uint8_t res2 = parseProtocol(rfRxChannel_buf, rfRxChannel_len, rfRxChannel_index, &rfRxChannel_proto);
174
                uint8_t res2 = parseProtocol(rfRxChannel_buf, rfRxChannel_len, rfRxChannel_index, &rfRxChannel_proto);
174
                if (res2 == IR_OK && rfRxChannel_proto.protocol != IR_PROTO_UNKNOWN) {
175
                if (res2 == IR_OK && rfRxChannel_proto.protocol != IR_PROTO_UNKNOWN)
-
 
176
                {
-
 
177
//gpio_clr_pin(EXP_B);
175
                    //send_debug(rfRxChannel_buf, rfRxChannel_len);
178
                    //send_debug(rfRxChannel_buf, rfRxChannel_len);
176
                    /* If timeout is 0, protocol is burst protocol */
179
                    /* If timeout is 0, protocol is burst protocol */
177
                    if (rfRxChannel_proto.timeout > 0)
180
                    if (rfRxChannel_proto.timeout > 0)
178
                    {
181
                    {
179
                        rfTxMsg.Data[0] = CAN_MODULE_ENUM_PHYSICAL_IR_STATUS_PRESSED;
182
                        rfTxMsg.Data[0] = CAN_MODULE_ENUM_PHYSICAL_IR_STATUS_PRESSED;