Added option to set verbosity from user code
This commit is contained in:
parent
d54730323f
commit
3e25160671
1 changed files with 5 additions and 0 deletions
|
|
@ -390,6 +390,11 @@ func (c *Camera) Disconnect() {
|
|||
c.connection.Close()
|
||||
}
|
||||
|
||||
// SetVerbose changes the verbosity setting of this camera object
|
||||
func (c *Camera) SetVerbose(verbose bool) {
|
||||
c.verbose = verbose
|
||||
}
|
||||
|
||||
func aliveRequestHandler(camera *Camera, message *Message) (bool, error) {
|
||||
camera.Log("Received Alive Request")
|
||||
responseHeader := CreateCommandHeader(0x0113) // Alive Response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue