Added ability to send options to master

This commit is contained in:
Rob 2016-12-26 21:36:22 -05:00
parent aafb321f8a
commit 9cb014a55c
1 changed files with 2 additions and 2 deletions

View File

@ -425,10 +425,10 @@ class HBSYSTEM(DatagramProtocol):
elif self._stats['CONNECTION'] == 'CONFIG-SENT': # If we've sent out configuration to the master
if _data[6:10] == self._config['RADIO_ID']:
self._logger.info('(%s) Repeater Configuration Accepted', self._system)
if self._config['OPTIONS'] != "":
if self._config['OPTIONS']:
self.send_master('RPTO'+self._config['RADIO_ID']+self._config['OPTIONS'])
self._stats['CONNECTION'] = 'OPTIONS-SENT'
self._logger.info('(%s) Sent options: '+self._config['OPTIONS'], self._system)
self._logger.info('(%s) Sent options: (%s)', self._system, self._config['OPTIONS'])
else:
self._stats['CONNECTION'] = 'YES'
self._logger.info('(%s) Connection to Master Completed', self._system)