Subversion Repositories HomeAutomation

Rev

Rev 153 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 153 Rev 154
Line 150... Line 150...
150
                        }
150
                        }
151
                        //hur göra med decimaldelen???
151
                        //hur göra med decimaldelen???
152
                        txMsg.Data.bytes[i*2+1] = (cel_frac_bits<<4);
152
                        txMsg.Data.bytes[i*2+1] = (cel_frac_bits<<4);
153
                       
153
                       
154
                    }
154
                    }
155
                    else printf("CRC Error (lost connection?)");
155
                    else printf("CRC Error (lost connection?)\n");
156
                    printf("\n");
-
 
157
                }
156
                }
158
            }
157
            }
159
            else printf("Start meas. failed (short circuit?)");
158
            else printf("Start meas. failed (short circuit?)\n");
160
 
159
 
161
            txMsg.DataLength = nSensors*2;
160
            txMsg.DataLength = nSensors*2;
162
            /* send txMsg */
161
            /* send txMsg */
163
            Can_Send(&txMsg);
162
            Can_Send(&txMsg);
164
        }
163
        }