aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-08-22 18:13:37 -0700
committermichael-west <michael.west@ettus.com>2017-08-29 18:33:54 -0700
commit8a3038b6c7d22c09b66597329d6e14b30d294f16 (patch)
tree41732f669f886d4dac59684c500e0a7cd7fb13b6 /host/include
parent92515a0477fdf3da79b66cfdb918abf1d9dad613 (diff)
downloaduhd-8a3038b6c7d22c09b66597329d6e14b30d294f16.tar.gz
uhd-8a3038b6c7d22c09b66597329d6e14b30d294f16.tar.bz2
uhd-8a3038b6c7d22c09b66597329d6e14b30d294f16.zip
C API: Dboard EEPROM revision error handling fix
For invalid dboard revisions stored in the EEPROM, provide a better error message.
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/usrp/dboard_eeprom.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/host/include/uhd/usrp/dboard_eeprom.h b/host/include/uhd/usrp/dboard_eeprom.h
index 6980de0ce..f3b9c4d9c 100644
--- a/host/include/uhd/usrp/dboard_eeprom.h
+++ b/host/include/uhd/usrp/dboard_eeprom.h
@@ -84,7 +84,11 @@ UHD_API uhd_error uhd_dboard_eeprom_set_serial(
const char* serial
);
-//! Get the daughterboard's revision (not always present)
+/*! Get the daughterboard's revision
+ *
+ * The revision doesn't always have to be present, in which case this function
+ * will return an error.
+ */
UHD_API uhd_error uhd_dboard_eeprom_get_revision(
uhd_dboard_eeprom_handle h,
int* revision_out