Return buffer in duration.toString

This commit is contained in:
Scott Lahteine
2019-09-27 02:59:49 -05:00
parent dc65788511
commit d683f98019
5 changed files with 12 additions and 24 deletions

View File

@ -183,11 +183,9 @@ void PrintCounter::saveStats() {
#if HAS_SERVICE_INTERVALS
inline void _service_when(char buffer[], const char * const msg, const uint32_t when) {
duration_t elapsed = when;
elapsed.toString(buffer);
SERIAL_ECHOPGM(MSG_STATS);
serialprintPGM(msg);
SERIAL_ECHOLNPAIR(" in ", buffer);
SERIAL_ECHOLNPAIR(" in ", duration_t(when).toString(buffer));
}
#endif