mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Remove frequency_offset from received_ping.
This commit is contained in:
parent
296a99ab8b
commit
02bc780dce
1 changed files with 4 additions and 5 deletions
|
@ -267,9 +267,9 @@ class DATA():
|
||||||
structlog.get_logger("structlog").debug("PING RECEIVED....")
|
structlog.get_logger("structlog").debug("PING RECEIVED....")
|
||||||
# = self.get_frequency_offset(freedv)
|
# = self.get_frequency_offset(freedv)
|
||||||
# we need to fix this later
|
# we need to fix this later
|
||||||
frequency_offset = "0"
|
# frequency_offset = 0
|
||||||
#print("Freq-Offset: " + str(frequency_offset))
|
#print("Freq-Offset: " + str(frequency_offset))
|
||||||
self.received_ping(bytes_out[:-2], frequency_offset)
|
self.received_ping(bytes_out[:-2])
|
||||||
|
|
||||||
|
|
||||||
# PING ACK
|
# PING ACK
|
||||||
|
@ -1473,13 +1473,12 @@ class DATA():
|
||||||
while static.TRANSMITTING:
|
while static.TRANSMITTING:
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
|
|
||||||
def received_ping(self, data_in:bytes, frequency_offset:str):
|
def received_ping(self, data_in:bytes):
|
||||||
"""
|
"""
|
||||||
Called if we received a ping
|
Called if we received a ping
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
data_in:bytes:
|
data_in:bytes:
|
||||||
frequency_offset:str:
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
|
@ -1504,7 +1503,7 @@ class DATA():
|
||||||
ping_frame[1:3] = static.DXCALLSIGN_CRC
|
ping_frame[1:3] = static.DXCALLSIGN_CRC
|
||||||
ping_frame[3:5] = static.MYCALLSIGN_CRC
|
ping_frame[3:5] = static.MYCALLSIGN_CRC
|
||||||
ping_frame[5:11] = static.MYGRID
|
ping_frame[5:11] = static.MYGRID
|
||||||
ping_frame[11:13] = frequency_offset.to_bytes(2, byteorder='big', signed=True)
|
ping_frame[11:13] = bytes([0,0]) # frequency_offset.to_bytes(2, byteorder='big', signed=True)
|
||||||
|
|
||||||
txbuffer = [ping_frame]
|
txbuffer = [ping_frame]
|
||||||
static.TRANSMITTING = True
|
static.TRANSMITTING = True
|
||||||
|
|
Loading…
Reference in a new issue