ErikZalm/Marlin — pull request #1197 by foosel (2014-12-19 13:29:10+00:00)
Title: Fixes commands not being acknowledged in the same order they are received in

(See the discussion at ErikZalm/Marlin#1147)

`G0` to `G3` were previously acknowledged in the get_command method, causing
them to be possibly acknowledged before commands coming after them that
were acknowledged in process_commands.

This patch fixes this, moving the acknowledgement of `G0` to `G3` to the
`process_commands` method as well. These commands are therefore no
longer acknowledged when the enter the `cmd_buffer` but instead only
acknowledged when the enter the `plan_buffer`.

Guaranteeing that commands are acknowledged in the same order in which
they were received by the firmware allows host software to be able to
track the life cycle of commands and such a better management of the
firmware's serial buffers as well as better internal command processing
and response parsing without having to depend on throwing an epic
amount of regular expressions against each line received back from the
firmware.