Subversion Repositories HomeAutomation

Rev

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

Rev 1704 Rev 1901
Line 76... Line 76...
76
        for (uint8_t i = 0; i < 16; i=i+2) {
76
        for (uint8_t i = 0; i < 16; i=i+2) {
77
            txMsg.Data[i>>1] = rxbuffer[i]<<4;
77
            txMsg.Data[i>>1] = rxbuffer[i]<<4;
78
           
78
           
79
            if (i+1 < rxlen)
79
            if (i+1 < rxlen)
80
                txMsg.Data[i>>1] |= rxbuffer[i+1];
80
                txMsg.Data[i>>1] |= rxbuffer[i+1];
-
 
81
            else
-
 
82
                txMsg.Data[i>>1] |= 0x0c;
81
        }
83
        }
82
        txMsg.Length = (rxlen>>1)+(rxlen&1);
84
        txMsg.Length = (rxlen>>1)+(rxlen&1);
83
       
85
       
84
        StdCan_Put(&txMsg);
86
        StdCan_Put(&txMsg);
85
        //}
87
        //}