added setting of timezone
This commit is contained in:
parent
958f2af516
commit
b7d8d4376d
6
main.go
6
main.go
@ -148,6 +148,12 @@ func main() {
|
|||||||
log.Error().Err(err).Msg("Error setting current time on connected InfiniTime")
|
log.Error().Err(err).Msg("Error setting current time on connected InfiniTime")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set time corresponding to current time
|
||||||
|
err = dev.SetTimezone(time.Now())
|
||||||
|
if err != nil {
|
||||||
|
log.Error().Err(err).Msg("Error setting local time on connected InfiniTime")
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize music controls
|
// Initialize music controls
|
||||||
err = initMusicCtrl(dev)
|
err = initMusicCtrl(dev)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user