MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.19k stars 19.21k forks source link

Error G command still return ok by serial #7002

Closed zhubinghan closed 7 years ago

zhubinghan commented 7 years ago

Hi: I send a error G command by serial. for example: I send 'G1 DDRE' by serial. FW return 'ok' . all 'G' and 'M' start string be send to FW, receive 'ok'. marlin 1.1.3

Tannoo commented 7 years ago

Nothing happened except for ok, right?

bobc commented 7 years ago

Are you sure that is an invalid command ? With Marlins' G code spec, it is interpreted as

G1 D{d} D{d} R{r} E{e}

where {x} is current value of parameter x. This is effectively G1 to current position (the other parameters have no effect).

Edit: oops

thinkyhead commented 7 years ago

That's valid G-code.

Marlin doesn't return an error for unrecognized G-codes. They are all treated as no-op.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.