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 df70342ff3
commit b3b5aaba43

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