60 Commits

Author SHA1 Message Date
Ghostkeeper
6908f2c011 Move prefix length out of for loop
It is cached so it only needs to be computed once.

Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
cfa4382052 Move serialised version number to top of GCode reader/writer
The version number is more clearly exposed there.

Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
541873ae6e Revert "Make serialisation version static"
This reverts commit 1771aafddb5082f51728b69f66862880701b4965.

Contributes to issue CURA-34.
2015-12-17 13:33:10 +01:00
Ghostkeeper
63bdb08ec2 Make serialisation version static
It needs to be accessed by GCodeReader to remain consistent.

Contributes to issue CURA-34.
2015-12-17 13:33:10 +01:00
Ghostkeeper
398dd60637 Limit g-code comments to 80 characters and add prefix
The prefix is of the form ;SETTING_n where n is the version ID of the profile serialisation.

Contributes to issue CURA-34.
2015-12-17 13:33:10 +01:00
Ghostkeeper
914ea8ba39 Append settings to g-code
A serialised version of the settings are now appended to the g-code. It doesn't introduce line breaks yet, so the g-code may be invalid if the firmware doesn't handle lines longer than 80 characters.

Contributes to issue CURA-34.
2015-12-17 13:33:09 +01:00
Arjen Hiemstra
d6b3044c79 Update GCodeWriter to the new API 2015-07-28 17:57:08 +02:00
Arjen Hiemstra
9d7e460b50 Add missing copyright headers
Fixes #5
2015-05-11 12:18:05 +02:00
Arjen Hiemstra
0a6562a8f1 Style: Use "" for strings not '' 2015-05-06 18:32:54 +02:00
Arjen Hiemstra
bda10b5ce5 Add 'plugins/GCodeWriter/' from commit '6fc044387a3de779032ce69812040bb772971ddc'
git-subtree-dir: plugins/GCodeWriter
git-subtree-mainline: 92afe31e370d117e74c0ea2da9da559db7fa4603
git-subtree-split: 6fc044387a3de779032ce69812040bb772971ddc
2015-04-30 14:43:27 +02:00