Subversion Repositories HomeAutomation

Rev

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

Rev 1977 Rev 2012
Line 251... Line 251...
251
       
251
       
252
    }
252
    }
253
    /* Send netinfo packet (if pwmvalue has changed, and periodically) */
253
    /* Send netinfo packet (if pwmvalue has changed, and periodically) */
254
    uint8_t index;
254
    uint8_t index;
255
    for(index =0;index < 4; index++){
255
    for(index =0;index < 4; index++){
256
        if (pwmValue[index] > 10000) {
256
        if (pwmValue[index] > ACT_HWPWM_MAX_DIM) {
257
            pwmValue[index] = 10000;
257
            pwmValue[index] = ACT_HWPWM_MAX_DIM;
258
        }
258
        }
259
        if (sendInfo[index])
259
        if (sendInfo[index])
260
        {
260
        {
261
            sendInfo[index] = 0;
261
            sendInfo[index] = 0;
262
            StdCan_Msg_t txMsg;
262
            StdCan_Msg_t txMsg;