Add log entry for RPTSBKN Site Beacon.

This commit is contained in:
Michael Eckhoff 2021-08-04 23:08:52 -05:00
parent c05d8fed5a
commit 0c12df00a7
2 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,8 @@ RPTC = b'RPTC'
RPTP = b'RPTP'
RPTA = b'RPTA'
RPTO = b'RPTO'
RPTS = b'RPTS'
RPTSBKN = b'RPTSBKN'
# Higheset peer ID permitted by HBP

View File

@ -695,6 +695,10 @@ class HBSYSTEM(DatagramProtocol):
self._stats['CONNECTION'] = 'NO'
logger.info('(%s) MSTCL Recieved', self._system)
elif _command == RPTS:
if _data[:7] == RPTSBKN:
logger.info('(%s) Recieved Site Beacon with Repeater ID: \'%s\'', self._system, int_id(_data[7:]))
else:
logger.error('(%s) Received an invalid command in packet: %s', self._system, ahex(_data))