Rev 844 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 844 | Rev 845 | ||
|---|---|---|---|
| Line 125... | Line 125... | ||
| 125 | } |
125 | } |
| 126 | #endif |
126 | #endif |
| 127 | #if defined(USE_TC1047) |
127 | #if defined(USE_TC1047) |
| 128 | #warning tc1047 id is still not correct // FIXME |
128 | #warning tc1047 id is still not correct // FIXME |
| 129 | /* check temperature and send on CAN */ |
129 | /* check temperature and send on CAN */ |
| 130 | if( |
130 | if( Timebase_PassedTimeMillis(timeStamp_TC) >= TC_SEND_PERIOD ){ |
| 131 | timeStamp_TC = |
131 | timeStamp_TC = Timebase_CurrentTime(); |
| 132 | 132 | ||
| 133 | tcTemperature = getTC1047temperature(TC1047_AD); |
133 | tcTemperature = getTC1047temperature(TC1047_AD); |
| 134 | txMsg.Data.bytes[0] = tcTemperature&0xff; |
134 | txMsg.Data.bytes[0] = tcTemperature&0xff; |
| 135 | txMsg.Data.bytes[1] = (tcTemperature>>8)&0xff; |
135 | txMsg.Data.bytes[1] = (tcTemperature>>8)&0xff; |
| 136 | txMsg.DataLength = 2; |
136 | txMsg.DataLength = 2; |