Subversion Repositories HomeAutomation

Rev

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

Rev 1906 Rev 1922
Line 1033... Line 1033...
1033
 *      Pointer to protocol information
1033
 *      Pointer to protocol information
1034
 * @return
1034
 * @return
1035
 *      IR_OK if data expanded successfully, one of several errormessages if not
1035
 *      IR_OK if data expanded successfully, one of several errormessages if not
1036
 */
1036
 */
1037
int8_t expandNexa2(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto) {
1037
int8_t expandNexa2(uint16_t *buf, uint8_t *len, Ir_Protocol_Data_t *proto) {
1038
    buf[0] = IR_NEXA2_START1;
1038
    //buf[0] = IR_NEXA2_START1;
1039
    buf[1] = IR_NEXA2_HIGH;
1039
    buf[0] = IR_NEXA2_HIGH;
1040
    buf[2] = IR_NEXA2_START2;
1040
    buf[1] = IR_NEXA2_START2;
-
 
1041
 
-
 
1042
    /* Start without support for dimmer */
-
 
1043
    *len = 131;
-
 
1044
   
-
 
1045
   
1041
   
1046
   
1042
    // TODO find out if dimmer value should be send, set different length, pad different
1047
    // TODO find out if dimmer value should be send, set different length, pad different
1043
   
1048
   
1044
    return IR_NOT_CORRECT_DATA;
1049
    return IR_NOT_CORRECT_DATA;
1045
}
1050
}