From 2199c8fcbf7fbb8fcf7e0ad85cbdc33a2101ff1a Mon Sep 17 00:00:00 2001 From: Nonoo Date: Sat, 28 Nov 2020 11:51:17 +0100 Subject: [PATCH] Fix bug which caused the status bar fields to be unpopulated on connect --- controlstream.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controlstream.go b/controlstream.go index be07a6b..e52e8f3 100644 --- a/controlstream.go +++ b/controlstream.go @@ -259,6 +259,8 @@ func (s *controlStream) handleRead(r []byte) error { copy(s.authID[:], r[26:32]) s.gotAuthID = true + statusLog.startPeriodicPrint() + if err := s.serial.init(devName); err != nil { return errors.New("serial/" + err.Error()) } @@ -268,7 +270,6 @@ func (s *controlStream) handleRead(r []byte) error { } s.serialAndAudioStreamOpened = true - statusLog.startPeriodicPrint() runCmdRunner.startIfNeeded(runCmd) if enableSerialDevice {