Merge pull request #1922 from Wurstnase/serial_wait

Serial wait
This commit is contained in:
Scott Lahteine
2015-05-10 23:10:25 -07:00
14 changed files with 118 additions and 4 deletions

View File

@ -380,6 +380,14 @@ const unsigned int dropsegments=5; //everything with less than this number of st
#define MAX_CMD_SIZE 96
#define BUFSIZE 4
// Bad Serial-connections can miss a received command by sending an 'ok'
// Therefore some clients go after 30 seconds in a timeout. Some other clients start sending commands while receiving a 'wait'.
// This wait is only send when the buffer is empty. The timeout-length is in milliseconds. 1000 is a good value.
#define NO_TIMEOUTS 1000
// Some clients will have this feature soon. This could make the NO_TIMEOUTS unnecessary.
#define ADVANCED_OK
// @section fwretract
// Firmware based and LCD controlled retract