WIP: tested G0,G1,G2,G4..
This commit is contained in:
@@ -177,8 +177,18 @@ int grblConstruct(char *configStr)
|
||||
// test some commands
|
||||
printf("Test command:G0X10Y100\n");
|
||||
ecmc_write_command_serial("G0X10Y100\n");
|
||||
printf("Test command:G4P4\n");
|
||||
ecmc_write_command_serial("G4P4\n");
|
||||
printf("Test command:G1X20Y200F20\n");
|
||||
ecmc_write_command_serial("G1X20Y200F20\n");
|
||||
printf("Test command:G4P4\n");
|
||||
ecmc_write_command_serial("G4P4\n");
|
||||
printf("Test command:G2X40Y220R20\n");
|
||||
ecmc_write_command_serial("G2X40Y220R20\n");
|
||||
printf("Test command:$\n");
|
||||
ecmc_write_command_serial("$\n");
|
||||
|
||||
|
||||
//printf("Test command:$J=X10.0Y-1.5\n");
|
||||
//ecmc_write_command_serial("$J=X10.0Y-1.5\0");
|
||||
//printf("Test command:#\n");
|
||||
|
||||
@@ -78,7 +78,7 @@ void protocol_main_loop()
|
||||
// initial filtering by removing spaces and comments and capitalizing all letters.
|
||||
while((c = serial_read()) != SERIAL_NO_DATA) {
|
||||
if ((c == '\n') || (c == '\r')) { // End of line reached
|
||||
printf("NEW_CHAR\n");
|
||||
//printf("NEW_CHAR\n");
|
||||
protocol_execute_realtime(); // Runtime command check point.
|
||||
if (sys.abort) { return; } // Bail to calling function upon system abort
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ void serial_write(uint8_t data) {
|
||||
char ecmc_get_char_from_grbl_tx_buffer()
|
||||
//ISR(SERIAL_UDRE)
|
||||
{
|
||||
printf("%s:%s:%d:\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
//printf("%s:%s:%d:\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
uint8_t tail = serial_tx_buffer_tail; // Temporary serial_tx_buffer_tail (to optimize for volatile)
|
||||
char tempChar=0;
|
||||
// Send a byte from the buffer
|
||||
|
||||
20465
iocsh/log.log
20465
iocsh/log.log
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user