Skip to content

Commit

Permalink
Fixed seven segment to show mode
Browse files Browse the repository at this point in the history
  • Loading branch information
talkkonnect committed Feb 14, 2022
1 parent 7ad2393 commit 6421708
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions clientcommands.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,11 +724,13 @@ func (b *Talkkonnect) VoiceTargetUserSet(TargetID uint32, TargetUser string) {
b.Client.VoiceTarget = vtarget
if TargetID > 0 {
log.Printf("debug: Added User %v to VT ID %v\n", TargetUser, TargetID)
b.sevenSegment("voicetarget", strconv.Itoa(int(TargetID)))
GPIOOutPin("voicetarget", "on")
} else {
//b.VoiceTarget.Clear()
GPIOOutPin("voicetarget", "off")
log.Println("debug: Cleared Voice Targets")
b.sevenSegment("voicetarget", strconv.Itoa(int(TargetID)))
}
b.Client.Send(vtarget)
} else {
Expand Down Expand Up @@ -763,6 +765,7 @@ func (b *Talkkonnect) VoiceTargetChannelSet(targetID uint32, targetChannelName s
b.Client.Send(vtarget)
log.Printf("debug: Shouting to Root Channel %v to VT ID %v with recursive %v links %v group %v\n", vChannel.Name, targetID, recursive, links, group)
GPIOOutPin("voicetarget", "off")
b.sevenSegment("voicetarget", strconv.Itoa(int(targetID)))
return
}

Expand All @@ -775,6 +778,7 @@ func (b *Talkkonnect) VoiceTargetChannelSet(targetID uint32, targetChannelName s
b.Client.VoiceTarget = vtarget
b.Client.Send(vtarget)
log.Printf("debug: Shouting to Child Channel %v to VT ID %v with recursive %v links %v group %v\n", vChannel.Name, targetID, recursive, links, group)
b.sevenSegment("voicetarget", strconv.Itoa(int(targetID)))
if targetID > 0 {
GPIOOutPin("voicetarget", "on")
}
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
package talkkonnect

const (
talkkonnectVersion string = "2.10.11"
talkkonnectVersion string = "2.10.12"
talkkonnectReleased string = "Feb 14 2022"
)

Expand Down

0 comments on commit 6421708

Please sign in to comment.