mirror of https://github.com/FOME-Tech/fome-fw.git
minor bugfix: periodic version status message via TTL
This commit is contained in:
parent
bb8d34b834
commit
9e78fcfc7e
|
@ -670,6 +670,8 @@ static void handleGetVersion(ts_channel_s *tsChannel, ts_response_format_e mode)
|
||||||
static void handleGetText(ts_channel_s *tsChannel) {
|
static void handleGetText(ts_channel_s *tsChannel) {
|
||||||
tsState.textCommandCounter++;
|
tsState.textCommandCounter++;
|
||||||
|
|
||||||
|
printOverallStatus(getTimeNowSeconds());
|
||||||
|
|
||||||
int outputSize;
|
int outputSize;
|
||||||
char *output = swapOutputBuffers(&outputSize);
|
char *output = swapOutputBuffers(&outputSize);
|
||||||
#if EFI_SIMULATOR || defined(__DOXYGEN__)
|
#if EFI_SIMULATOR || defined(__DOXYGEN__)
|
||||||
|
|
|
@ -377,7 +377,7 @@ static void printOutPin(const char *pinName, brain_pin_e hwPin) {
|
||||||
}
|
}
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
|
|
||||||
static void printInfo(systime_t nowSeconds) {
|
void printOverallStatus(systime_t nowSeconds) {
|
||||||
/**
|
/**
|
||||||
* we report the version every 4 seconds - this way the console does not need to
|
* we report the version every 4 seconds - this way the console does not need to
|
||||||
* request it and we will display it pretty soon
|
* request it and we will display it pretty soon
|
||||||
|
@ -413,12 +413,11 @@ static void printInfo(systime_t nowSeconds) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
|
scheduleLogging(&logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
static systime_t timeOfPreviousReport = (systime_t) -1;
|
static systime_t timeOfPreviousReport = (systime_t) -1;
|
||||||
|
|
||||||
extern fatal_msg_t errorMessageBuffer;
|
|
||||||
extern bool consoleInBinaryMode;
|
extern bool consoleInBinaryMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -468,7 +467,6 @@ void updateDevConsoleState(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
systime_t nowSeconds = getTimeNowSeconds();
|
systime_t nowSeconds = getTimeNowSeconds();
|
||||||
printInfo(nowSeconds);
|
|
||||||
|
|
||||||
#if EFI_ENGINE_CONTROL || defined(__DOXYGEN__)
|
#if EFI_ENGINE_CONTROL || defined(__DOXYGEN__)
|
||||||
int currentCkpEventCounter = getCrankEventCounter();
|
int currentCkpEventCounter = getCrankEventCounter();
|
||||||
|
|
|
@ -17,5 +17,6 @@ void initStatusLoop(void);
|
||||||
void writeLogLine(void);
|
void writeLogLine(void);
|
||||||
bool getFullLog(void);
|
bool getFullLog(void);
|
||||||
void setFullLog(int value);
|
void setFullLog(int value);
|
||||||
|
void printOverallStatus(systime_t nowSeconds);
|
||||||
|
|
||||||
#endif /* CONSOLE_LOOP_H_ */
|
#endif /* CONSOLE_LOOP_H_ */
|
||||||
|
|
|
@ -733,5 +733,5 @@ int getRusEfiVersion(void) {
|
||||||
if (initBootloader() != 0)
|
if (initBootloader() != 0)
|
||||||
return 123;
|
return 123;
|
||||||
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
|
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
|
||||||
return 20180325;
|
return 20180401;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue