minor bugfix: periodic version status message via TTL
This commit is contained in:
parent
2023dea41e
commit
bcab3336cf
|
@ -670,6 +670,8 @@ static void handleGetVersion(ts_channel_s *tsChannel, ts_response_format_e mode)
|
|||
static void handleGetText(ts_channel_s *tsChannel) {
|
||||
tsState.textCommandCounter++;
|
||||
|
||||
printOverallStatus(getTimeNowSeconds());
|
||||
|
||||
int outputSize;
|
||||
char *output = swapOutputBuffers(&outputSize);
|
||||
#if EFI_SIMULATOR || defined(__DOXYGEN__)
|
||||
|
|
|
@ -377,7 +377,7 @@ static void printOutPin(const char *pinName, brain_pin_e hwPin) {
|
|||
}
|
||||
#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
|
||||
* request it and we will display it pretty soon
|
||||
|
@ -413,12 +413,11 @@ static void printInfo(systime_t nowSeconds) {
|
|||
}
|
||||
|
||||
#endif /* EFI_PROD_CODE */
|
||||
|
||||
scheduleLogging(&logger);
|
||||
}
|
||||
|
||||
static systime_t timeOfPreviousReport = (systime_t) -1;
|
||||
|
||||
extern fatal_msg_t errorMessageBuffer;
|
||||
extern bool consoleInBinaryMode;
|
||||
|
||||
/**
|
||||
|
@ -468,7 +467,6 @@ void updateDevConsoleState(void) {
|
|||
}
|
||||
|
||||
systime_t nowSeconds = getTimeNowSeconds();
|
||||
printInfo(nowSeconds);
|
||||
|
||||
#if EFI_ENGINE_CONTROL || defined(__DOXYGEN__)
|
||||
int currentCkpEventCounter = getCrankEventCounter();
|
||||
|
|
|
@ -17,5 +17,6 @@ void initStatusLoop(void);
|
|||
void writeLogLine(void);
|
||||
bool getFullLog(void);
|
||||
void setFullLog(int value);
|
||||
void printOverallStatus(systime_t nowSeconds);
|
||||
|
||||
#endif /* CONSOLE_LOOP_H_ */
|
||||
|
|
|
@ -733,5 +733,5 @@ int getRusEfiVersion(void) {
|
|||
if (initBootloader() != 0)
|
||||
return 123;
|
||||
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
|
||||
return 20180325;
|
||||
return 20180401;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue