Minor comment/condition cleanup
This commit is contained in:
parent
f64d300cfd
commit
b7053156fe
|
@ -89,8 +89,6 @@ void GcodeSuite::M203() {
|
||||||
* P = Printing moves
|
* P = Printing moves
|
||||||
* R = Retract only (no X, Y, Z) moves
|
* R = Retract only (no X, Y, Z) moves
|
||||||
* T = Travel (non printing) moves
|
* T = Travel (non printing) moves
|
||||||
*
|
|
||||||
* Also sets minimum segment time in ms (B20000) to prevent buffer under-runs and M20 minimum feedrate
|
|
||||||
*/
|
*/
|
||||||
void GcodeSuite::M204() {
|
void GcodeSuite::M204() {
|
||||||
if (parser.seen('S')) { // Kept for legacy compatibility. Should NOT BE USED for new developments.
|
if (parser.seen('S')) { // Kept for legacy compatibility. Should NOT BE USED for new developments.
|
||||||
|
|
|
@ -271,7 +271,7 @@ inline void get_serial_commands() {
|
||||||
|
|
||||||
// If the command buffer is empty for too long,
|
// If the command buffer is empty for too long,
|
||||||
// send "wait" to indicate Marlin is still waiting.
|
// send "wait" to indicate Marlin is still waiting.
|
||||||
#if defined(NO_TIMEOUTS) && NO_TIMEOUTS > 0
|
#if NO_TIMEOUTS > 0
|
||||||
static millis_t last_command_time = 0;
|
static millis_t last_command_time = 0;
|
||||||
const millis_t ms = millis();
|
const millis_t ms = millis();
|
||||||
if (commands_in_queue == 0 && !serial_data_available() && ELAPSED(ms, last_command_time + NO_TIMEOUTS)) {
|
if (commands_in_queue == 0 && !serial_data_available() && ELAPSED(ms, last_command_time + NO_TIMEOUTS)) {
|
||||||
|
|
|
@ -192,7 +192,7 @@
|
||||||
#define STAT_LED_RED_PIN 22
|
#define STAT_LED_RED_PIN 22
|
||||||
#define STAT_LED_BLUE_PIN 32
|
#define STAT_LED_BLUE_PIN 32
|
||||||
|
|
||||||
#else
|
#else // !VIKI2 && !miniVIKI
|
||||||
|
|
||||||
#define BEEPER_PIN 79 // AUX-4
|
#define BEEPER_PIN 79 // AUX-4
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@
|
||||||
|
|
||||||
#define SD_DETECT_PIN 81
|
#define SD_DETECT_PIN 81
|
||||||
|
|
||||||
#endif // VIKI2/miniVIKI
|
#endif // !VIKI2 && !miniVIKI
|
||||||
|
|
||||||
#else // !NEWPANEL - old style panel with shift register
|
#else // !NEWPANEL - old style panel with shift register
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue