aboutsummaryrefslogtreecommitdiff
path: root/media.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-01-03 01:07:02 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-01-03 01:07:02 +0100
commit670f94252c2f0bb66ebb025a726ef51f8c1fc59f (patch)
tree2971bfbc3325a51269d6634b250998821532d481 /media.go
parent16df0bea5fe8ce0a4ea871d409f589b298567a97 (diff)
...
Diffstat (limited to 'media.go')
-rw-r--r--media.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/media.go b/media.go
index 6576e7b..235faee 100644
--- a/media.go
+++ b/media.go
@@ -10,6 +10,10 @@ type Media struct {
Overcut Unit // FC ?
}
+func (m Media) String() string {
+ return m.Descr
+}
+
func (r Robo) SetMedia(m Media) {
r.Media(m.ID)
r.Speed(m.Speed)