't' to print current date
This commit is contained in:
parent
dd4950f850
commit
f9054b0cde
|
@ -570,10 +570,10 @@ static void handleTestCommand(TsChannelBase* tsChannel) {
|
|||
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " %d %d", engine->engineState.warnings.lastErrorCode, tsState.testCommandCounter);
|
||||
tsChannel->write((const uint8_t*)testOutputBuffer, strlen(testOutputBuffer));
|
||||
|
||||
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " uptime=%ds", getTimeNowSeconds());
|
||||
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " uptime=%ds ", getTimeNowSeconds());
|
||||
tsChannel->write((const uint8_t*)testOutputBuffer, strlen(testOutputBuffer));
|
||||
|
||||
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " %s\r\n", PROTOCOL_TEST_RESPONSE_TAG);
|
||||
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), __DATE__ " %s\r\n", PROTOCOL_TEST_RESPONSE_TAG);
|
||||
tsChannel->write((const uint8_t*)testOutputBuffer, strlen(testOutputBuffer));
|
||||
|
||||
if (hasFirmwareError()) {
|
||||
|
|
Loading…
Reference in New Issue