Skip to content

Commit 40d4aa0

Browse files
committed
cleaned up the code
1 parent 5d7a150 commit 40d4aa0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python_hackrf/pyhackrf_tools/pyhackrf_info.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def pyhackrf_info(print_to_console: bool = True, initialize: bool = True) -> Non
3232
print_info += f'python_hackrf version: {pyhackrf.python_hackrf_library_version()}\n'
3333
print_info += f'libhackrf version: {pyhackrf.pyhackrf_library_release()} ({pyhackrf.pyhackrf_library_version()})\n'
3434

35-
if device_list.devicecount > 0:
36-
for i in range(device_list.devicecount):
35+
if device_list.device_count > 0:
36+
for i in range(device_list.device_count):
3737
print_info += 'Found HackRF:\n'
3838
device = pyhackrf.pyhackrf_open_by_serial(device_list.serial_numbers[i])
3939
board_id, board_id_name = device.pyhackrf_board_id_read()
@@ -76,8 +76,8 @@ def pyhackrf_serial_numbers_list_info(print_to_console: bool = True, initialize:
7676
device_list = pyhackrf.pyhackrf_device_list()
7777

7878
if print_to_console:
79-
print(f'Serial numbers [{device_list.devicecount}]: {device_list.serial_numbers}')
79+
print(f'Serial numbers [{device_list.device_count}]: {device_list.serial_numbers}')
8080
else:
81-
return device_list.devicecount, device_list.serial_numbers
81+
return device_list.device_count, device_list.serial_numbers
8282
if initialize:
8383
pyhackrf.pyhackrf_exit()

0 commit comments

Comments
 (0)