Eliminate last remaining 201 error (line below minimum length)

This commit is contained in:
Alden Hart
2017-01-02 14:34:45 -05:00
parent ab09b8906f
commit fdb4418f57
3 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
* error.h - g2core status codes
* This file is part of the g2core project
*
* Copyright (c) 2010 - 2016 Alden S. Hart, Jr.
* Copyright (c) 2010 - 2016 Robert Giseburt
* Copyright (c) 2010 - 2017 Alden S. Hart, Jr.
* Copyright (c) 2010 - 2017 Robert Giseburt
*
* This file ("the software") is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2 as published by the
+1 -2
View File
@@ -198,8 +198,7 @@ stat_t mp_aline(GCodeState_t* gm_in)
// exit if the move has zero movement. At all.
if (fp_ZERO(length)) {
sr_request_status_report(SR_REQUEST_TIMED_FULL); // Was SR_REQUEST_IMMEDIATE_FULL
return (STAT_MINIMUM_LENGTH_MOVE);
// return (STAT_OK); //+++++ test this
return (STAT_OK); // preferred over STAT_MINIMUM_LENGTH_MOVE
}
// get a cleared buffer and copy in the Gcode model state
+7 -4
View File
@@ -34,8 +34,9 @@
//+++++ DIAGNOSTICS
#if IN_DEBUGGER < 1
#define LOG_RETURN(msg) // LOG_RETURN with no action (production)
/*
#else
#include "xio.h"
static char logbuf[128];
static void _logger(const char *msg, const mpBuf_t *bf) // LOG_RETURN with full state dump
@@ -47,16 +48,18 @@ static void _logger(const char *msg, const mpBuf_t *bf) // LOG_RETURN wi
xio_writeline(logbuf);
}
#define LOG_RETURN(msg) { _logger(msg, bf); }
*/
#endif
#if IN_DEBUGGER < 1
#define TRAP_ZERO(t,m)
/*
#else
#define TRAP_ZERO(t, m) \
if (fp_ZERO(t)) { \
rpt_exception(STAT_MINIMUM_LENGTH_MOVE, m); \
_debug_trap(m); \
}
*/
#endif
//+++++ END DIAGNOSTICS
/* local functions */