activate advanced_ok and no_timeout
This commit is contained in:
		| @@ -379,10 +379,10 @@ const unsigned int dropsegments=5; //everything with less than this number of st | |||||||
| // Bad Serial-connections can miss a received command by sending an 'ok' | // 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'. | // 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. | // 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 | #define NO_TIMEOUTS 1000 | ||||||
|  |  | ||||||
| // Some clients will have this feature soon. This should make the NO_TIMEOUTS unnecessary. | // Some clients will have this feature soon. This could make the NO_TIMEOUTS unnecessary. | ||||||
| // #define ADVANCED_OK | #define ADVANCED_OK | ||||||
|  |  | ||||||
| // @section fwretract | // @section fwretract | ||||||
|  |  | ||||||
|   | |||||||
| @@ -5535,7 +5535,7 @@ void ClearToSend() { | |||||||
|     SERIAL_PROTOCOLPGM(" N"); SERIAL_PROTOCOL(gcode_LastN); |     SERIAL_PROTOCOLPGM(" N"); SERIAL_PROTOCOL(gcode_LastN); | ||||||
|     SERIAL_PROTOCOLPGM(" P"); SERIAL_PROTOCOL(BUFSIZE - commands_in_queue); |     SERIAL_PROTOCOLPGM(" P"); SERIAL_PROTOCOL(BUFSIZE - commands_in_queue); | ||||||
|   #endif |   #endif | ||||||
|   SERIAL_PROTOCOLLNPGM("");   |   SERIAL_EOL;   | ||||||
| } | } | ||||||
|  |  | ||||||
| void get_coordinates() { | void get_coordinates() { | ||||||
|   | |||||||
| @@ -376,6 +376,14 @@ const unsigned int dropsegments=5; //everything with less than this number of st | |||||||
| #define MAX_CMD_SIZE 96 | #define MAX_CMD_SIZE 96 | ||||||
| #define BUFSIZE 4 | #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 | // @section fwretract | ||||||
|  |  | ||||||
| // Firmware based and LCD controlled retract | // Firmware based and LCD controlled retract | ||||||
|   | |||||||
| @@ -376,6 +376,14 @@ const unsigned int dropsegments=5; //everything with less than this number of st | |||||||
| #define MAX_CMD_SIZE 96 | #define MAX_CMD_SIZE 96 | ||||||
| #define BUFSIZE 4 | #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 | // @section fwretract | ||||||
|  |  | ||||||
| // Firmware based and LCD controlled retract | // Firmware based and LCD controlled retract | ||||||
|   | |||||||
| @@ -374,7 +374,15 @@ const unsigned int dropsegments=5; //everything with less than this number of st | |||||||
|  |  | ||||||
| //The ASCII buffer for receiving from the serial: | //The ASCII buffer for receiving from the serial: | ||||||
| #define MAX_CMD_SIZE 96 | #define MAX_CMD_SIZE 96 | ||||||
| #define BUFSIZE 5 | #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 | // @section fwretract | ||||||
|  |  | ||||||
|   | |||||||
| @@ -376,6 +376,14 @@ const unsigned int dropsegments=5; //everything with less than this number of st | |||||||
| #define MAX_CMD_SIZE 96 | #define MAX_CMD_SIZE 96 | ||||||
| #define BUFSIZE 4 | #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 | // @section fwretract | ||||||
|  |  | ||||||
| // Firmware based and LCD controlled retract | // Firmware based and LCD controlled retract | ||||||
|   | |||||||
| @@ -376,6 +376,14 @@ const unsigned int dropsegments=5; //everything with less than this number of st | |||||||
| #define MAX_CMD_SIZE 96 | #define MAX_CMD_SIZE 96 | ||||||
| #define BUFSIZE 4 | #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 | // @section fwretract | ||||||
|  |  | ||||||
| // Firmware based and LCD controlled retract | // Firmware based and LCD controlled retract | ||||||
|   | |||||||
| @@ -374,7 +374,15 @@ const unsigned int dropsegments=5; //everything with less than this number of st | |||||||
|  |  | ||||||
| //The ASCII buffer for receiving from the serial: | //The ASCII buffer for receiving from the serial: | ||||||
| #define MAX_CMD_SIZE 96 | #define MAX_CMD_SIZE 96 | ||||||
| #define BUFSIZE 5 | #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 | // @section fwretract | ||||||
|  |  | ||||||
|   | |||||||
| @@ -377,6 +377,14 @@ const unsigned int dropsegments=5; //everything with less than this number of st | |||||||
| #define MAX_CMD_SIZE 96 | #define MAX_CMD_SIZE 96 | ||||||
| #define BUFSIZE 4 | #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 | // @section fwretract | ||||||
|  |  | ||||||
| // Firmware based and LCD controlled retract | // Firmware based and LCD controlled retract | ||||||
|   | |||||||
| @@ -377,6 +377,14 @@ const unsigned int dropsegments=5; //everything with less than this number of st | |||||||
| #define MAX_CMD_SIZE 96 | #define MAX_CMD_SIZE 96 | ||||||
| #define BUFSIZE 4 | #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 | // @section fwretract | ||||||
|  |  | ||||||
| // Firmware based and LCD controlled retract | // Firmware based and LCD controlled retract | ||||||
|   | |||||||
| @@ -376,6 +376,14 @@ const unsigned int dropsegments=5; //everything with less than this number of st | |||||||
| #define MAX_CMD_SIZE 96 | #define MAX_CMD_SIZE 96 | ||||||
| #define BUFSIZE 4 | #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 | // @section fwretract | ||||||
|  |  | ||||||
| // Firmware based and LCD controlled retract | // Firmware based and LCD controlled retract | ||||||
|   | |||||||
| @@ -376,6 +376,14 @@ const unsigned int dropsegments=5; //everything with less than this number of st | |||||||
| #define MAX_CMD_SIZE 96 | #define MAX_CMD_SIZE 96 | ||||||
| #define BUFSIZE 4 | #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 | // @section fwretract | ||||||
|  |  | ||||||
| // Firmware based and LCD controlled retract | // Firmware based and LCD controlled retract | ||||||
|   | |||||||
| @@ -376,6 +376,14 @@ const unsigned int dropsegments=5; //everything with less than this number of st | |||||||
| #define MAX_CMD_SIZE 96 | #define MAX_CMD_SIZE 96 | ||||||
| #define BUFSIZE 4 | #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 | // @section fwretract | ||||||
|  |  | ||||||
| // Firmware based and LCD controlled retract | // Firmware based and LCD controlled retract | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user