[Grbl_Esp32 PR#588] Remove trivial defines

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

Issue #588 | 状态: 已关闭 | 作者: atlaste | 创建时间: 2020-09-09


Weeded out all trivial defines I could find in the code. Defines are trivial if they are unused, or:

– defined only once and
– not used in an #if, #ifdef or #ifndef and
– not redefined or a pin and
– doesn’t redefine a symbol more than once

SpindleType was converted to an enum class, since it’s also trivial.

Build-all succeeds. Manually changed & validated the code using the previous PR as a basis.

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

喜欢 (0)