main: only send value messages if we have an address.

This commit is contained in:
Martin Preuss
2023-02-06 21:10:41 +01:00
parent d56cbd6f25
commit e5a4f1b1e6

View File

@@ -245,6 +245,9 @@ printSendStats:
#ifdef MODULES_COM
Main_SendValueMsg:
lds r16, comAddress ; do we have an address assigned?
tst r16
breq sendValueMsg_done ; no, do nothing
; send message for current temp
lds r22, si7021Flags
mov r16, r22