bladeRF-cli: Fixed incorrect write size (rx, binary SC16Q12)
This commit is contained in:
parent
2f3c866dce
commit
3752bddcec
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ project(bladeRF-cli C)
|
|||
|
||||
set(VERSION_INFO_MAJOR 0)
|
||||
set(VERSION_INFO_MINOR 7)
|
||||
set(VERSION_INFO_PATCH 0)
|
||||
set(VERSION_INFO_PATCH 1)
|
||||
if(NOT DEFINED VERSION_INFO_EXTRA)
|
||||
set(VERSION_INFO_EXTRA "git")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ static int rx_write_bin_sc16q12(struct rxtx_data *rx,
|
|||
rx->file_mgmt.file);
|
||||
pthread_mutex_unlock(&rx->file_mgmt.file_lock);
|
||||
|
||||
if (status != n_samples) {
|
||||
if (status != (2 * n_samples)) {
|
||||
set_last_error(&rx->last_error, ETYPE_CLI, CMD_RET_FILEOP);
|
||||
return CMD_RET_FILEOP;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue