Skip to content

Commit 31b7812

Browse files
committed
updated
1 parent fa511f5 commit 31b7812

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python_hackrf/pylibhackrf/pyhackrf.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ cdef class PyHackrfDevice:
609609
result = chackrf.hackrf_get_operacake_mode(self.__hackrf_device, <uint8_t> address, &mode)
610610
if result != chackrf.hackrf_error.HACKRF_SUCCESS:
611611
raise RuntimeError(f'pyhackrf_get_operacake_mode() failed: {chackrf.hackrf_error_name(result).decode("utf-8")} ({result})')
612-
return mode
612+
return py_operacake_switching_mode(mode)
613613

614614
def pyhackrf_set_operacake_ports(self, address: int, port_a: str, port_b: str) -> None:
615615
result = chackrf.hackrf_set_operacake_ports(self.__hackrf_device, <uint8_t> address, <uint8_t> operacake_ports[port_a], <uint8_t> operacake_ports[port_b])

python_hackrf/pylibhackrf/pyhackrf_android.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ cdef class PyHackrfDevice:
608608
result = chackrf.hackrf_get_operacake_mode(self.__hackrf_device, <uint8_t> address, &mode)
609609
if result != chackrf.hackrf_error.HACKRF_SUCCESS:
610610
raise RuntimeError(f'pyhackrf_get_operacake_mode() failed: {chackrf.hackrf_error_name(result).decode("utf-8")} ({result})')
611-
return mode
611+
return py_operacake_switching_mode(mode)
612612

613613
def pyhackrf_set_operacake_ports(self, address: int, port_a: str, port_b: str) -> None:
614614
result = chackrf.hackrf_set_operacake_ports(self.__hackrf_device, <uint8_t> address, <uint8_t> operacake_ports[port_a], <uint8_t> operacake_ports[port_b])

0 commit comments

Comments
 (0)