equal
deleted
inserted
replaced
229 signal(SIGINT, catch_signal); |
229 signal(SIGINT, catch_signal); |
230 |
230 |
231 // Open CAN devices |
231 // Open CAN devices |
232 if(SlaveBoard.baudrate) |
232 if(SlaveBoard.baudrate) |
233 if((SlaveCanHandle = canOpen(&SlaveBoard))==NULL) goto fail_slave; |
233 if((SlaveCanHandle = canOpen(&SlaveBoard))==NULL) goto fail_slave; |
234 |
234 |
235 if(MasterBoard.baudrate) |
235 if(MasterBoard.baudrate) |
236 if((MasterCanHandle = canOpen(&MasterBoard))==NULL) goto fail_master; |
236 if((MasterCanHandle = canOpen(&MasterBoard))==NULL) goto fail_master; |
237 |
237 |
238 // Start timer thread |
238 // Start timer thread |
239 StartTimerLoop(&InitNodes); |
239 StartTimerLoop(&InitNodes); |