auto-sync

This commit is contained in:
rusEfi 2016-05-28 19:02:28 -04:00
parent 9e1c894c0e
commit 355908de2d
4 changed files with 10 additions and 13 deletions

View File

@ -535,6 +535,10 @@ void commonInitEngineController(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_S
initSignalExecutor();
#endif
#if EFI_SENSOR_CHART || defined(__DOXYGEN__)
initSensorChart();
#endif /* EFI_SENSOR_CHART */
#if EFI_PROD_CODE || EFI_SIMULATOR
// todo: this is a mess, remove code duplication with simulator
initSettings(engineConfiguration);
@ -572,10 +576,6 @@ void initEngineContoller(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_S) {
initPwmGenerator();
#endif
#if EFI_SENSOR_CHART || defined(__DOXYGEN__)
initSensorChart();
#endif /* EFI_SENSOR_CHART */
initAlgo(sharedLogger, engineConfiguration);
#if EFI_WAVE_ANALYZER || defined(__DOXYGEN__)

View File

@ -9,17 +9,15 @@
#include "main.h"
#include "engine.h"
#include "rpm_calculator.h"
#if EFI_PROD_CODE || defined(__DOXYGEN__)
#include "status_loop.h"
#endif
#if EFI_SENSOR_CHART || defined(__DOXYGEN__)
#include "status_loop.h"
static char LOGGING_BUFFER[5000];
static Logging logging("analog chart", LOGGING_BUFFER, sizeof(LOGGING_BUFFER));
static int pendingData = FALSE;
static int initialized = FALSE;
static int pendingData = false;
static int initialized = false;
extern engine_configuration_s *engineConfiguration;
@ -49,11 +47,9 @@ void scAddData(float angle, float value) {
// message terminator
appendPrintf(&logging, DELIMETER);
// output pending data
#if EFI_PROD_CODE || defined(__DOXYGEN__)
if (getFullLog()) {
scheduleLogging(&logging);
}
#endif
pendingData = false;
}
return;

View File

@ -313,7 +313,8 @@ public class BinaryProtocol {
byte[] response = executeCommand(packet, "load image offset=" + offset, false);
if (!checkResponseCode(response, RESPONSE_OK) || response.length != requestSize + 1) {
String info = response == null ? "null" : ("code " + response[0] + " size " + response.length);
String code = (response == null || response.length == 0) ? "empty" : "code " + response[0];
String info = response == null ? "null" : (code + " size " + response.length);
logger.error("readImage: Something is wrong, retrying... " + info);
continue;
}

View File

@ -36,7 +36,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig;
* @see EngineSnifferPanel
*/
public class Launcher {
public static final int CONSOLE_VERSION = 20160523;
public static final int CONSOLE_VERSION = 20160528;
public static final boolean SHOW_STIMULATOR = false;
private static final String TAB_INDEX = "main_tab";
protected static final String PORT_KEY = "port";