Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
macdylan committed Nov 3, 2023
1 parent 7127bc5 commit a112127
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions fix/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const (
ToolheadSingle = "singleExtruderToolheadForSM2"
ToolheadDual = "dualExtruderToolheadForSM2"

ModelA150 = "A150"
ModelA250 = "A250"
ModelA350 = "A350"
ModelA150 = "Snapmaker 2.0 A150"
ModelA250 = "Snapmaker 2.0 A250"
ModelA350 = "Snapmaker 2.0 A350"
ModelA400 = "A400"
ModelJ1 = "Snapmaker J1"
)
Expand Down
5 changes: 3 additions & 2 deletions fix/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ func headerV0() [][]byte {
h = append(h, H(";machine: %s", Params.Model))
h = append(h, H(";file_total_lines: %d", Params.TotalLines+34))
h = append(h, H(";estimated_time(s): %.0f", float64(Params.EstimatedTimeSec)*1.07))
h = append(h, H(";nozzle_temperature(°C): %.0f", Params.EffectiveNozzleTemperature()))
h = append(h, H(";nozzle_0_temperature(°C): %.0f", Params.NozzleTemperatures[0]))
// h = append(h, H(";nozzle_temperature(°C): %.0f", Params.EffectiveNozzleTemperature()))
h = append(h, H(";nozzle_temperature(°C): %.0f", Params.NozzleTemperatures[0]))
// h = append(h, H(";nozzle_0_temperature(°C): %.0f", Params.NozzleTemperatures[0]))
h = append(h, H(";nozzle_0_diameter(mm): %.1f", Params.NozzleDiameters[0]))
h = append(h, H(";nozzle_0_material: %s", Params.FilamentTypes[0]))
h = append(h, H(";Extruder 0 Retraction Distance: %.2f", Params.Retractions[0]))
Expand Down
4 changes: 4 additions & 0 deletions fix/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ func ParseParams(f io.Reader) error {
Params.Version = 0
}

if strings.Contains(Params.PrinterNotes, "_DUAL") {
Params.ToolHead = ToolheadDual
}

{
// printer model && slicer version
var models = map[string]string{
Expand Down

0 comments on commit a112127

Please sign in to comment.