mauroalderete / gcode-core

Golang library to model and edit G-code commands, blocks from files
MIT License
7 stars 1 forks source link

Fix float addressable gcode without integer part expressed in gcode file #72

Closed mauroalderete closed 2 years ago

mauroalderete commented 2 years ago

Description

Often, PrusaSlicer generates a gcode file using float32 gcodes without integer part expressed. G1 Z.35 F7800 I change regexp to support this format. Additional, simplify the regexp to ignore comments and checksum sections since these structs are discarded in previous steps.

How Has This Been Tested?

Add two cases in TestParse

Checklist:

codeclimate[bot] commented 2 years ago

Code Climate has analyzed commit 0e476f94 and detected 0 issues on this pull request.

View more on Code Climate.