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:
Diffstat (limited to 'src/GCodes/GCodeInput.cpp')
-rw-r--r--src/GCodes/GCodeInput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GCodes/GCodeInput.cpp b/src/GCodes/GCodeInput.cpp
index 3a6f6227..e4787fbd 100644
--- a/src/GCodes/GCodeInput.cpp
+++ b/src/GCodes/GCodeInput.cpp
@@ -13,7 +13,7 @@
bool GCodeInput::FillBuffer(GCodeBuffer *gb)
{
- size_t bytesToPass = min<size_t>(BytesCached(), GCODE_LENGTH);
+ const size_t bytesToPass = min<size_t>(BytesCached(), GCODE_LENGTH);
for (size_t i = 0; i < bytesToPass; i++)
{
const char c = ReadByte();