diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fffProcessor.h | 2 | ||||
-rw-r--r-- | src/settings.cpp | 1 | ||||
-rw-r--r-- | src/settings.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/fffProcessor.h b/src/fffProcessor.h index 1b7e05a669..8f6855c293 100644 --- a/src/fffProcessor.h +++ b/src/fffProcessor.h @@ -344,6 +344,8 @@ private: gcode.writeComment("TIME:<__TIME__>"); gcode.writeComment("MATERIAL:<FILAMENT>"); gcode.writeComment("MATERIAL2:<FILAMEN2>"); + gcode.writeComment("NOZZLE_DIAMETER:%f", float(config.nozzleSize) / 1000); + gcode.writeComment("NOZZLE_DIAMETER2:%f", float(config.nozzleSize) / 1000); } gcode.writeCode(config.startCode.c_str()); if (gcode.getFlavor() == GCODE_FLAVOR_BFB) diff --git a/src/settings.cpp b/src/settings.cpp index 2952f714a4..1f8975fe9d 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -18,6 +18,7 @@ ConfigSettings *ConfigSettings::config = NULL; ConfigSettings::ConfigSettings() { config = this; + SETTING(nozzleSize, 400); SETTING(layerThickness, 100); SETTING(initialLayerThickness, 300); SETTING(filamentDiameter, 2890); diff --git a/src/settings.h b/src/settings.h index 7ffa05e359..bd48ddadc1 100644 --- a/src/settings.h +++ b/src/settings.h @@ -126,6 +126,7 @@ private: std::vector<_ConfigSettingIndex> _index; public: static ConfigSettings *config; // allow access to config settings from everywhere + int nozzleSize; int layerThickness; int initialLayerThickness; int filamentDiameter; |