mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
First run reducing number of problems
This commit is contained in:
parent
debe742081
commit
c71369aa44
3 changed files with 3 additions and 1 deletions
|
@ -47,6 +47,7 @@ def freedv_get_mode_value_by_name(mode: str) -> int:
|
||||||
return FREEDV_MODE[mode.lower()].value
|
return FREEDV_MODE[mode.lower()].value
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Function for returning the mode name
|
# Function for returning the mode name
|
||||||
def freedv_get_mode_name_by_value(mode: int) -> str:
|
def freedv_get_mode_name_by_value(mode: int) -> str:
|
||||||
"""
|
"""
|
||||||
|
@ -332,6 +333,7 @@ api.fdmdv_8_to_48_short.argtype = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_in
|
||||||
api.fdmdv_48_to_8_short.argtype = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_int] # type: ignore
|
api.fdmdv_48_to_8_short.argtype = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_int] # type: ignore
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class resampler:
|
class resampler:
|
||||||
"""
|
"""
|
||||||
Re-sampler class
|
Re-sampler class
|
||||||
|
|
|
@ -227,6 +227,7 @@ class DAEMON:
|
||||||
options.append("--tuning_range_fmax")
|
options.append("--tuning_range_fmax")
|
||||||
options.append(data[20])
|
options.append(data[20])
|
||||||
|
|
||||||
|
|
||||||
# overriding FSK mode
|
# overriding FSK mode
|
||||||
# if data[21] == "True":
|
# if data[21] == "True":
|
||||||
# options.append("--fsk")
|
# options.append("--fsk")
|
||||||
|
|
|
@ -230,7 +230,6 @@ def callsign_to_bytes(callsign) -> bytes:
|
||||||
return encode_call(callsign + ssid)
|
return encode_call(callsign + ssid)
|
||||||
# return bytes(bytestring)
|
# return bytes(bytestring)
|
||||||
|
|
||||||
|
|
||||||
def bytes_to_callsign(bytestring: bytes) -> bytes:
|
def bytes_to_callsign(bytestring: bytes) -> bytes:
|
||||||
"""
|
"""
|
||||||
Convert our callsign, received by a frame to a callsign in a human readable format
|
Convert our callsign, received by a frame to a callsign in a human readable format
|
||||||
|
|
Loading…
Reference in a new issue