From 63eaa413d61fb6c6bc6a636218da22469650a8c3 Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Tue, 14 Nov 2017 19:32:24 +0100 Subject: [PATCH] [TASK] meshviewer-ffrgb output add mac of link --- output/meshviewer-ffrgb/struct.go | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/output/meshviewer-ffrgb/struct.go b/output/meshviewer-ffrgb/struct.go index 71381de..5bd8a46 100644 --- a/output/meshviewer-ffrgb/struct.go +++ b/output/meshviewer-ffrgb/struct.go @@ -55,7 +55,6 @@ type Autoupdater struct { Branch string `json:"branch,omitempty"` } - // Location struct type Location struct { Longtitude float64 `json:"longitude,omitempty"` @@ -64,14 +63,13 @@ type Location struct { // Link type Link struct { - Type string `json:"type"` - Source string `json:"source"` - Target string `json:"target"` - SourceTQ float32 `json:"source_tq"` - TargetTQ float32 `json:"target_tq"` - // keep the logic for maybe later implementation - SourceMAC string `json:"-"` - TargetMAC string `json:"-"` + Type string `json:"type"` + Source string `json:"source"` + Target string `json:"target"` + SourceTQ float32 `json:"source_tq"` + TargetTQ float32 `json:"target_tq"` + SourceMAC string `json:"source_mac"` + TargetMAC string `json:"target_mac"` } func NewNode(nodes *runtime.Nodes, n *runtime.Node) *Node {