Fixed cmd subcommand, cleaned up debug output
This commit is contained in:
parent
6d48cf11bf
commit
b58dea42be
2 changed files with 2 additions and 2 deletions
|
|
@ -163,7 +163,7 @@ func main() {
|
|||
bufio.NewReader(os.Stdin).ReadBytes('\n')
|
||||
},
|
||||
PreRun: func(cmd *cobra.Command, args []string) {
|
||||
camera = connectAndLogin(net.ParseIP(args[0]), int(port), username, password, verbose)
|
||||
camera = connectAndLogin(net.ParseIP(args[1]), int(port), username, password, verbose)
|
||||
},
|
||||
PostRun: func(cmd *cobra.Command, args []string) {
|
||||
camera.Disconnect()
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ type Message struct {
|
|||
}
|
||||
|
||||
func (m *Message) String() string {
|
||||
return fmt.Sprintf("{ Message Header=%s, Payload=\n%s\n }", m.Header.String(), hex.Dump(m.Payload))
|
||||
return fmt.Sprintf("{ Message\n\tHeader=%s,\n\tPayload=\n%s\n}", m.Header.String(), hex.Dump(m.Payload))
|
||||
}
|
||||
|
||||
// StreamHeader is a live preview message header
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue