Skip to content

Commit

Permalink
do not panic if device is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
andresv committed Sep 6, 2015
1 parent 0a150d1 commit ae5c221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "airspy"
version = "0.3.0"
version = "0.3.1"
authors = ["Andres Vahter <[email protected]>"]

[dependencies]
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ impl<T: AirspySupportedType<T>> Airspy<T> {
},
ffiairspy::AIRSPY_ERROR_NO_MEM => Err(AirspyError::NoMem),
ffiairspy::AIRSPY_ERROR_LIBUSB => Err(AirspyError::LibUsb),
ffiairspy::AIRSPY_ERROR_NOT_FOUND => Err(AirspyError::NotFound),
err => panic!("airspy_open returned error ({:})", err),
}
}
Expand Down

0 comments on commit ae5c221

Please sign in to comment.