auto-sync
This commit is contained in:
parent
e63618b8e6
commit
8c2734479f
|
@ -28,6 +28,7 @@
|
|||
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
||||
#include "electronic_throttle.h"
|
||||
#include "rtc_helper.h"
|
||||
#include "can_hw.h"
|
||||
#include "rusefi.h"
|
||||
#include "pin_repository.h"
|
||||
#include "hardware.h"
|
||||
|
@ -1026,6 +1027,7 @@ command_i_s commandsI[] = {{"ignition_mode", setIgnitionMode},
|
|||
{"tps_accel_len", setTpsAccelLen},
|
||||
{"engine_load_accel_len", setEngineLoadAccelLen},
|
||||
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
||||
{"can_mode", setCanType},
|
||||
{"idle_position", setIdleValvePosition},
|
||||
{"idle_rpm", setTargetIdleRpm},
|
||||
{"idle_dt", setIdleDT},
|
||||
|
|
|
@ -257,6 +257,11 @@ static void canInfo(void) {
|
|||
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 */
|
||||
|
||||
void enableFrankensoCan(DECLARE_ENGINE_PARAMETER_F) {
|
||||
|
|
|
@ -31,6 +31,7 @@ void stopCanPins(DECLARE_ENGINE_PARAMETER_F);
|
|||
void startCanPins(DECLARE_ENGINE_PARAMETER_F);
|
||||
void commonTxInit(int eid);
|
||||
void sendMessage();
|
||||
void setCanType(int type);
|
||||
void setTxBit(int offset, int index);
|
||||
void enableFrankensoCan(DECLARE_ENGINE_PARAMETER_F);
|
||||
|
||||
|
|
|
@ -249,5 +249,5 @@ int getRusEfiVersion(void) {
|
|||
return 123; // this is here to make the compiler happy about the unused array
|
||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||
return 3211; // this is here to make the compiler happy about the unused array
|
||||
return 20170108;
|
||||
return 20170111;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue