progress: bringing simulator closer to real code
only:hellen-honda-k
This commit is contained in:
parent
24e3aa5cc7
commit
bd72aace92
|
@ -560,7 +560,12 @@ void initHardware() {
|
|||
initMax31855(engineConfiguration->max31855spiDevice, engineConfiguration->max31855_cs);
|
||||
#endif /* EFI_MAX_31855 */
|
||||
|
||||
#if EFI_CAN_SUPPORT && EFI_PROD_CODE
|
||||
#if EFI_CAN_SUPPORT
|
||||
#if EFI_SIMULATOR
|
||||
// Set CAN device name
|
||||
CAND1.deviceName = "can0";
|
||||
#endif
|
||||
|
||||
initCan();
|
||||
#endif /* EFI_CAN_SUPPORT */
|
||||
|
||||
|
|
|
@ -96,12 +96,8 @@ void rusEfiFunctionalTest(void) {
|
|||
|
||||
startLoggingProcessor();
|
||||
|
||||
|
||||
initializeConsole();
|
||||
|
||||
initStatusLoop();
|
||||
initDataStructures();
|
||||
|
||||
initializeConsole();
|
||||
|
||||
// todo: reduce code duplication with initEngineController
|
||||
|
||||
|
@ -119,6 +115,7 @@ void rusEfiFunctionalTest(void) {
|
|||
|
||||
startLua();
|
||||
|
||||
initStatusLoop();
|
||||
|
||||
/**
|
||||
* !!!! TESTS !
|
||||
|
@ -136,14 +133,6 @@ void rusEfiFunctionalTest(void) {
|
|||
|
||||
engineConfiguration->enableVerboseCanTx = true;
|
||||
|
||||
#if HAL_USE_CAN
|
||||
// Set CAN device name
|
||||
CAND1.deviceName = "can0";
|
||||
|
||||
initCan();
|
||||
#endif // HAL_USE_CAN
|
||||
|
||||
|
||||
initPeriodicEvents();
|
||||
|
||||
extern bool main_loop_started;
|
||||
|
|
Loading…
Reference in New Issue