[Grbl_Esp32 PR#572] Replaced #defines with enums in GCode.h

未分类 bolang 4个月前 (10-14) 38次浏览

Issue #572 | 状态: 已关闭 | 作者: MitchBradley | 创建时间: 2020-08-31


This is stylistically more correct in C++ and lets the compiler do better error checking.
There were a couple of instances where I used non-scoped enums because the use of bitfields is woven deeply into the GCode parser – and C++ enums really don’t like bitfields.


评论 (1)

#1 – MitchBradley 于 2020-08-31

Before we take this patch we should do some serious testing, perhaps by dumping the GCode parser state at the end of each line of text, then running a GCode test program that exercises pretty much every command there is, on both the existing and new code. The output should be identical.


原始Issue: https://github.com/bdring/Grbl_Esp32/pull/572

喜欢 (0)