Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cython warnings #951

Merged
merged 4 commits into from
Feb 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/urh/dev/native/lib/bladerf.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ from libc.stdlib cimport malloc, free
cdef bladerf* _c_device

cdef int CHANNEL = 0
cpdef bool IS_TX = False
cdef bool IS_TX = False

cpdef set_tx(bool is_tx):
global IS_TX
Expand Down
4 changes: 2 additions & 2 deletions src/urh/dev/native/lib/limesdr.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ from urh.util.Logger import logger
cdef lms_device_t *_c_device
cdef lms_stream_t stream

cpdef size_t CHANNEL = 0
cpdef bool IS_TX = False
cdef size_t CHANNEL = 0
cdef bool IS_TX = False

cpdef set_tx(bool is_tx):
global IS_TX
Expand Down
4 changes: 2 additions & 2 deletions src/urh/dev/native/lib/usrp.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ cdef uhd_tx_streamer_handle tx_streamer_handle
cdef uhd_rx_metadata_handle rx_metadata_handle
cdef uhd_tx_metadata_handle tx_metadata_handle

cpdef bint IS_TX = False
cpdef size_t CHANNEL = 0
cdef bint IS_TX = False
cdef size_t CHANNEL = 0
cdef size_t max_num_rx_samples = 300
cdef size_t max_num_tx_samples = 300

Expand Down