Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2018-02-04 22:38:29 +0300
committerDavid Crocker <dcrocker@eschertech.com>2018-02-04 22:38:29 +0300
commit1448121041393c9a878c3dd84ddd97dff2a4687f (patch)
tree23441e82f7705680779812bba25a953e6e5a2379 /src/Logger.cpp
parent7dc0079595cab16ebf1563b59c07e24b341c3efa (diff)
Towards 1.21RC2
Refactored some string handling Fixes for Duet 2M
Diffstat (limited to 'src/Logger.cpp')
-rw-r--r--src/Logger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Logger.cpp b/src/Logger.cpp
index f93525ab..575664f6 100644
--- a/src/Logger.cpp
+++ b/src/Logger.cpp
@@ -137,8 +137,8 @@ void Logger::Flush(bool forced)
// Caller must already have checked and set inLogger.
bool Logger::WriteDateTime(time_t time)
{
- char bufferSpace[30];
- StringRef buf(bufferSpace, ARRAY_SIZE(bufferSpace));
+ String<30> bufferSpace;
+ const StringRef buf = bufferSpace.GetRef();
if (time == 0)
{
const uint32_t timeSincePowerUp = (uint32_t)(millis64()/1000u);