Skip to content

Commit

Permalink
Add data_dir argument
Browse files Browse the repository at this point in the history
  • Loading branch information
brutella committed Dec 10, 2018
1 parent 6585249 commit 343dd10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/hkcam/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func main() {
}

var multiStream *bool = flag.Bool("multi_stream", true, "Allow mutliple clients to view the stream simultaneously")
var dataDir *string = flag.String("data_dir", "", "Path to data directory")
var verbose *bool = flag.Bool("verbose", false, "Verbose logging")
flag.Parse()

Expand All @@ -52,7 +53,7 @@ func main() {
switchInfo := accessory.Info{Name: "Camera"}
cam := accessory.NewCamera(switchInfo)

t, err := hc.NewIPTransport(hc.Config{}, cam.Accessory)
t, err := hc.NewIPTransport(hc.Config{StoragePath: *dataDir}, cam.Accessory)
if err != nil {
log.Info.Panic(err)
}
Expand Down

0 comments on commit 343dd10

Please sign in to comment.