auto-sync
This commit is contained in:
parent
2ae8edf14a
commit
f26a1eef6d
|
@ -486,13 +486,13 @@ static void blinkingThread(void *arg) {
|
|||
initialLedsBlink();
|
||||
|
||||
while (true) {
|
||||
int delay;
|
||||
int delay = isConsoleReady() ? 3 * blinkingPeriod : blinkingPeriod;
|
||||
|
||||
#if EFI_INTERNAL_FLASH || defined(__DOXYGEN__)
|
||||
if (getNeedToWriteConfiguration()) {
|
||||
delay = isConsoleReady() ? 6 * blinkingPeriod : 2 * blinkingPeriod;
|
||||
} else {
|
||||
delay = isConsoleReady() ? 3 * blinkingPeriod : blinkingPeriod;
|
||||
delay = 2 * delay;
|
||||
}
|
||||
#endif
|
||||
|
||||
communicationPin.setValue(0);
|
||||
warningPin.setValue(0);
|
||||
|
@ -574,7 +574,9 @@ void updateTunerStudioState(Engine *engine, TunerStudioOutputChannels *tsOutputC
|
|||
tsOutputChannels->egtValues.values[i] = getEgtValue(i);
|
||||
#endif /* EFI_MAX_31855 */
|
||||
|
||||
#if EFI_INTERNAL_FLASH || defined(__DOXYGEN__)
|
||||
tsOutputChannels->needBurn = getNeedToWriteConfiguration();
|
||||
#endif
|
||||
tsOutputChannels->hasSdCard = isSdCardAlive();
|
||||
tsOutputChannels->isFuelPumpOn = enginePins.fuelPumpRelay.getLogicValue();
|
||||
tsOutputChannels->isFanOn = enginePins.fanRelay.getLogicValue();
|
||||
|
|
|
@ -224,9 +224,10 @@ static void onEvenyGeneralMilliseconds(Engine *engine) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if (EFI_PROD_CODE && EFI_ENGINE_CONTROL )|| defined(__DOXYGEN__)
|
||||
if (!engine->rpmCalculator.isRunning())
|
||||
#if (EFI_PROD_CODE && EFI_ENGINE_CONTROL && EFI_INTERNAL_FLASH) || defined(__DOXYGEN__)
|
||||
if (!engine->rpmCalculator.isRunning()) {
|
||||
writeToFlashIfPending();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (versionForConfigurationListeners.isOld()) {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "tunerstudio.h"
|
||||
#endif
|
||||
|
||||
#if EFI_INTERNAL_FLASH
|
||||
#if EFI_INTERNAL_FLASH || defined(__DOXYGEN__)
|
||||
|
||||
#include "engine_controller.h"
|
||||
|
||||
|
|
|
@ -238,7 +238,7 @@ void initHardware(Logging *l, Engine *engine) {
|
|||
}
|
||||
#else
|
||||
engineConfiguration->engineType = DEFAULT_ENGINE_TYPE;
|
||||
resetConfigurationExt(logger, engineConfiguration->engineType, engine);
|
||||
resetConfigurationExt(sharedLogger, engineConfiguration->engineType, engine);
|
||||
#endif /* EFI_INTERNAL_FLASH */
|
||||
|
||||
if (hasFirmwareError()) {
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
package com.rusefi;
|
||||
|
||||
import static com.rusefi.AutoTest.setEngineType;
|
||||
import static com.rusefi.IoUtil.sendCommand;
|
||||
import static com.rusefi.IoUtil.sleep;
|
||||
import static com.rusefi.RealHwTest.startRealHardwareTest;
|
||||
|
||||
public class EnduranceTest {
|
||||
public static void main(String[] args) {
|
||||
|
||||
private static final int COUNT = 200;
|
||||
|
||||
public static void main(String[] args) {
|
||||
long start = System.currentTimeMillis();
|
||||
try {
|
||||
String port = startRealHardwareTest(args);
|
||||
|
||||
|
@ -13,11 +17,15 @@ public class EnduranceTest {
|
|||
return;
|
||||
|
||||
IoUtil.realHardwareConnect(port);
|
||||
for (int i = 0; i < 1000; i++) {
|
||||
setEngineType(3);
|
||||
IoUtil.changeRpm(1200);
|
||||
setEngineType(28);
|
||||
IoUtil.changeRpm(2400);
|
||||
for (int i = 0; i < COUNT; i++) {
|
||||
AutoTest.currentEngineType = 3;
|
||||
sendCommand("set_engine_type " + 3, AutoTest.COMPLEX_COMMAND_RETRY, 600);
|
||||
sleep(2);
|
||||
sendCommand("enable self_stimulation");
|
||||
// IoUtil.changeRpm(1200);
|
||||
AutoTest.currentEngineType = 28;
|
||||
sendCommand("set_engine_type " + 28, AutoTest.COMPLEX_COMMAND_RETRY, 600);
|
||||
sleep(2);
|
||||
FileLog.MAIN.logLine("++++++++++++++++++++++++++++++++++++ " + i + " +++++++++++++++");
|
||||
}
|
||||
|
||||
|
@ -25,5 +33,9 @@ public class EnduranceTest {
|
|||
e.printStackTrace();
|
||||
System.exit(-1);
|
||||
}
|
||||
FileLog.MAIN.logLine("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
|
||||
FileLog.MAIN.logLine("++++++++++++++++++++++++++++++++++++ YES YES YES " + COUNT + " +++++++++++++++");
|
||||
FileLog.MAIN.logLine("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
|
||||
FileLog.MAIN.logLine("In " + (System.currentTimeMillis() - start) + "ms");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue