aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-04-23 21:19:40 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-04-23 21:19:40 +0200
commit045d7efb7ddaf3ae05b6c4b51191abac31a96a8f (patch)
tree4c2671686fcdd177fd6182b3b5396e5edd45ffb4 /cutter.go
parentce0344a46828f40266569d9f28cfa6104b996313 (diff)
Fix spelling
Diffstat (limited to 'cutter.go')
-rw-r--r--cutter.go17
1 files changed, 13 insertions, 4 deletions
diff --git a/cutter.go b/cutter.go
index 9527ad7..9fe5d6a 100644
--- a/cutter.go
+++ b/cutter.go
@@ -167,14 +167,23 @@ func (c Cutter) ReadUpperRight() (string, error) {
return c.readResponse()
}
+// Speed 10..100 mm/s
func (c Cutter) Speed(n int) {
- defer c.EOT()
- fmt.Fprint(c, "!", n)
+ if n >= 1 && n <= 10 {
+ defer c.EOT()
+ fmt.Fprint(c, "!", n)
+ }
+}
+
+func (c Cutter) Thickness(n int) {
+ if n >= 1 && n <= 30 {
+ defer c.EOT()
+ fmt.Fprint(c, "FX", n)
+ }
}
func (c Cutter) Force(n int) {
- defer c.EOT()
- fmt.Fprint(c, "FX", n)
+ c.Thickness(n)
}
func (c Cutter) Initialize() {