bladeRF-cli: (Re-)fixed return value
The >= check was a vestige of older code; status is 0 unless set to an error condition.
This commit is contained in:
parent
b4f9b9898b
commit
39d95d8a49
1 changed files with 1 additions and 2 deletions
|
|
@ -229,11 +229,10 @@ static int tx_csv_to_sc16q12(struct cli_state *s)
|
|||
line++;
|
||||
}
|
||||
|
||||
if (status >= 0 && feof(csv)) {
|
||||
if (status == 0 && feof(csv)) {
|
||||
tx->file_mgmt.format = RXTX_FMT_BIN_SC16Q12;
|
||||
free(tx->file_mgmt.path);
|
||||
tx->file_mgmt.path = bin_name;
|
||||
status = 0;
|
||||
}
|
||||
|
||||
tx_csv_to_sc16q12_out:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue