Skip to content

Commit

Permalink
some small enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Jan 4, 2025
1 parent 8a10a33 commit f03bfca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"airspy_lib_mock.h": "c",
"shared_mutex": "c",
"__tree": "c",
"memory_resource": "c"
"memory_resource": "c",
"airspy.h": "c"
}
}
2 changes: 1 addition & 1 deletion src/resources/config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bind_address="127.0.0.1"
# port for a server
port=8090

# buffer size for passing the data from USB
# buffer size (in bytes) for passing the data from USB
# same buffer setting for passing data between threads
# the bigger buffer the less context switching, but
# bigger latency for RF messages
Expand Down
2 changes: 1 addition & 1 deletion src/sdr/airspy_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ int airspy_device_start_rx(uint32_t band_freq, void *plugin) {

void airspy_device_stop_rx(void *plugin) {
struct airspy_device_t *device = (struct airspy_device_t *)plugin;
device->lib->airspy_stop_rx(device->dev);
if (device->dev != NULL) {
device->lib->airspy_stop_rx(device->dev);
device->lib->airspy_close(device->dev);
}
}
2 changes: 1 addition & 1 deletion src/sdr/airspy_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int airspy_lib_create(airspy_lib **lib) {

airspy_lib_version_t version;
result->airspy_lib_version(&version);
fprintf(stdout, "airspy library initialized: %"PRIu32".%"PRIu32"\n", version.major_version, version.minor_version);
fprintf(stdout, "airspy library initialized: %"PRIu32".%"PRIu32".%"PRIu32"\n", version.major_version, version.minor_version, version.revision);

*lib = result;
return 0;
Expand Down

0 comments on commit f03bfca

Please sign in to comment.