mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
make sure own ssid is always part of ssid list
This commit is contained in:
parent
85b16c7935
commit
d0d853d72b
1 changed files with 5 additions and 1 deletions
|
@ -323,8 +323,12 @@ if __name__ == "__main__":
|
|||
mycallsign = helpers.callsign_to_bytes(mycallsign)
|
||||
static.MYCALLSIGN = helpers.bytes_to_callsign(mycallsign)
|
||||
static.MYCALLSIGN_CRC = helpers.get_crc_24(static.MYCALLSIGN)
|
||||
|
||||
static.SSID_LIST = ARGS.ssid_list
|
||||
# check if own ssid is always part of ssid list
|
||||
own_ssid = int(mycallsign.split("-")[1])
|
||||
if own_ssid not in static.SSID_LIST:
|
||||
static.SSID_LIST.append(own_ssid)
|
||||
|
||||
static.MYGRID = bytes(ARGS.mygrid, "utf-8")
|
||||
|
||||
# check if we have an int or str as device name
|
||||
|
|
Loading…
Reference in a new issue