bladeRF-cli: Fixed incorrect write size (rx, binary SC16Q12)

This commit is contained in:
Jon Szymaniak 2013-11-08 00:54:55 -05:00
commit 3752bddcec
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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 {