auto-sync

This commit is contained in:
rusEfi 2017-01-11 21:04:22 -05:00
parent e63618b8e6
commit 8c2734479f
4 changed files with 9 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#if EFI_PROD_CODE || defined(__DOXYGEN__) #if EFI_PROD_CODE || defined(__DOXYGEN__)
#include "electronic_throttle.h" #include "electronic_throttle.h"
#include "rtc_helper.h" #include "rtc_helper.h"
#include "can_hw.h"
#include "rusefi.h" #include "rusefi.h"
#include "pin_repository.h" #include "pin_repository.h"
#include "hardware.h" #include "hardware.h"
@ -1026,6 +1027,7 @@ command_i_s commandsI[] = {{"ignition_mode", setIgnitionMode},
{"tps_accel_len", setTpsAccelLen}, {"tps_accel_len", setTpsAccelLen},
{"engine_load_accel_len", setEngineLoadAccelLen}, {"engine_load_accel_len", setEngineLoadAccelLen},
#if EFI_PROD_CODE || defined(__DOXYGEN__) #if EFI_PROD_CODE || defined(__DOXYGEN__)
{"can_mode", setCanType},
{"idle_position", setIdleValvePosition}, {"idle_position", setIdleValvePosition},
{"idle_rpm", setTargetIdleRpm}, {"idle_rpm", setTargetIdleRpm},
{"idle_dt", setIdleDT}, {"idle_dt", setIdleDT},

View File

@ -257,6 +257,11 @@ static void canInfo(void) {
scheduleMsg(&logger, "CAN rx count %d/tx ok %d/tx not ok %d", canReadCounter, canWriteOk, canWriteNotOk); scheduleMsg(&logger, "CAN rx count %d/tx ok %d/tx not ok %d", canReadCounter, canWriteOk, canWriteNotOk);
} }
void setCanType(int type) {
engineConfiguration->canNbcType = (can_nbc_e)type;
canInfo();
}
#endif /* EFI_PROD_CODE */ #endif /* EFI_PROD_CODE */
void enableFrankensoCan(DECLARE_ENGINE_PARAMETER_F) { void enableFrankensoCan(DECLARE_ENGINE_PARAMETER_F) {

View File

@ -31,6 +31,7 @@ void stopCanPins(DECLARE_ENGINE_PARAMETER_F);
void startCanPins(DECLARE_ENGINE_PARAMETER_F); void startCanPins(DECLARE_ENGINE_PARAMETER_F);
void commonTxInit(int eid); void commonTxInit(int eid);
void sendMessage(); void sendMessage();
void setCanType(int type);
void setTxBit(int offset, int index); void setTxBit(int offset, int index);
void enableFrankensoCan(DECLARE_ENGINE_PARAMETER_F); void enableFrankensoCan(DECLARE_ENGINE_PARAMETER_F);

View File

@ -249,5 +249,5 @@ int getRusEfiVersion(void) {
return 123; // this is here to make the compiler happy about the unused array return 123; // this is here to make the compiler happy about the unused array
if (UNUSED_CCM_SIZE[0] * 0 != 0) if (UNUSED_CCM_SIZE[0] * 0 != 0)
return 3211; // this is here to make the compiler happy about the unused array return 3211; // this is here to make the compiler happy about the unused array
return 20170108; return 20170111;
} }