mirror of
https://github.com/ShaYmez/HBmonitor.git
synced 2024-11-24 16:58:47 -05:00
Update monitor.py
This commit is contained in:
parent
c5bfa34da7
commit
dbcaed3c37
@ -222,7 +222,7 @@ def add_hb_peer(_peer_conf, _ctable_loc, _peer):
|
|||||||
# if the Frequency is 000.xxx assume it's not an RF peer, otherwise format the text fields
|
# if the Frequency is 000.xxx assume it's not an RF peer, otherwise format the text fields
|
||||||
# (9 char, but we are just software) see https://wiki.brandmeister.network/index.php/Homebrew/example/php2
|
# (9 char, but we are just software) see https://wiki.brandmeister.network/index.php/Homebrew/example/php2
|
||||||
|
|
||||||
if _peer_conf['TX_FREQ'].strip().isdecimal() and _peer_conf['RX_FREQ'].strip().isdecimal() and str(type(_peer_conf['TX_FREQ'])).find("bytes") != -1 and str(type(_peer_conf['RX_FREQ'])).find("bytes") != -1:
|
if _peer_conf['TX_FREQ'].strip().isdigit() and _peer_conf['RX_FREQ'].strip().isdigit() and str(type(_peer_conf['TX_FREQ'])).find("bytes") != -1 and str(type(_peer_conf['RX_FREQ'])).find("bytes") != -1:
|
||||||
if _peer_conf['TX_FREQ'][:3] == b'000' or _peer_conf['RX_FREQ'][:3] == b'000':
|
if _peer_conf['TX_FREQ'][:3] == b'000' or _peer_conf['RX_FREQ'][:3] == b'000':
|
||||||
_ctable_peer['TX_FREQ'] = 'N/A'
|
_ctable_peer['TX_FREQ'] = 'N/A'
|
||||||
_ctable_peer['RX_FREQ'] = 'N/A'
|
_ctable_peer['RX_FREQ'] = 'N/A'
|
||||||
|
Loading…
Reference in New Issue
Block a user