Skip to content

Commit

Permalink
added 0.1 step on move screen
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkv committed Oct 15, 2019
1 parent f82da70 commit 0b321b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ build-internal: prepare-internal
cp ../*.deb /build/;

prepare-internal:
dch --create -v $(VERSION)-2 --package $(PACKAGE_NAME) empty; \
dch --create -v $(VERSION)-5 --package $(PACKAGE_NAME) empty; \
cd $(WORKDIR)/..; \
tar -czf octoscreen_$(VERSION).orig.tar.gz --exclude-vcs OctoScreen

Expand Down
6 changes: 3 additions & 3 deletions ui/move.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ func (m *movePanel) initialize() {
m.Grid().Attach(m.createMoveButton("Z+", "move-z+.svg", octoprint.ZAxis, 1), 3, 1, 1, 1)

m.step = MustStepButton("move-step.svg",
Step{"5mm", 5}, Step{"10mm", 10}, Step{"1mm", 1},
Step{"5mm", 5}, Step{"10mm", 10}, Step{"1mm", 1}, Step{"0.1mm", 0.1},
)

m.Grid().Attach(m.step, 2, 2, 1, 1)
}

func (m *movePanel) createMoveButton(label, image string, a octoprint.Axis, dir int) gtk.IWidget {
func (m *movePanel) createMoveButton(label, image string, a octoprint.Axis, dir float64) gtk.IWidget {

return MustPressedButton(label, image, func() {
distance := m.step.Value().(int) * dir
distance := m.step.Value().(float64) * dir

cmd := &octoprint.PrintHeadJogRequest{}
switch a {
Expand Down
6 changes: 3 additions & 3 deletions vendor/github.com/mcuadros/go-octoprint/printer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0b321b5

Please sign in to comment.