Work out what to do with received G-Code commands. More...
#include "gcode_process.h"#include <string.h>#include "gcode_parse.h"#include "dda_queue.h"#include "watchdog.h"#include "delay.h"#include "serial.h"#include "sermsg.h"#include "temp.h"#include "heater.h"#include "timer.h"#include "sersendf.h"#include "pinio.h"#include "debug.h"#include "clock.h"#include "config.h"#include "home.h"Functions | |
| void | process_gcode_command () |
| Processes command stored in global next_target. | |
Variables | |
| uint8_t | tool |
| the current tool | |
| uint8_t | next_tool |
| the tool to be changed when we get an M6 | |
Work out what to do with received G-Code commands.
| void process_gcode_command | ( | void | ) |
Processes command stored in global next_target.
This is where we work out what to actually do with each command we receive. All data has already been scaled to integers in gcode_process. If you want to add support for a new G or M code, this is the place.
Referenced by gcode_parse_char().
1.7.2