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>2020-10-05 13:51:41 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-10-05 13:51:41 +0300
commit9c6db4632f8be9ac72b9bfa828911c63d29b5e50 (patch)
treeeaa73c73a2ac06b14830c76388d06d51710188dc /src/Configuration.h
parent0a10fc6c37a8396944eb5eff3e34e76250a1409a (diff)
M150 commands are now queued. Candidate for 3.2beta2 release.
Diffstat (limited to 'src/Configuration.h')
-rw-r--r--src/Configuration.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Configuration.h b/src/Configuration.h
index c56df02f..642eebed 100644
--- a/src/Configuration.h
+++ b/src/Configuration.h
@@ -239,12 +239,13 @@ constexpr size_t StringBufferLength = StringLength256; // Length of the string b
#if SAM4E || SAM4S || SAME70 || SAME5x || defined(ESP_NETWORKING)
// Increased GCODE_LENGTH on the SAM4 because M587 and M589 commands on the Duet WiFi can get very long and GCode meta commands can get even longer
constexpr size_t GCODE_LENGTH = 201; // maximum number of non-comment characters in a line of GCode including the null terminator
-constexpr size_t SHORT_GCODE_LENGTH = 61; // maximum length of a GCode that we can queue to synchronise it to a move
#else
constexpr size_t GCODE_LENGTH = 101; // maximum number of non-comment characters in a line of GCode including the null terminator
-constexpr size_t SHORT_GCODE_LENGTH = 61; // maximum length of a GCode that we can queue to synchronise it to a move
#endif
+// Define the maximum length of a GCode that we can queue to synchronise it to a move. Long enough for M150 R255 U255 B255 P255 S255 F1 encoded in binary mode (64 bytes).
+constexpr size_t SHORT_GCODE_LENGTH = 64;
+
// Output buffer length and number of buffers
// When using RTOS, it is best if it is possible to fit an HTTP response header in a single buffer. Our headers are currently about 230 bytes long.
// A note on reserved buffers: the worst case is when a GCode with a long response is processed. After string the response, there must be enough buffer space