diff --git a/hwdriver.c b/hwdriver.c index 5e9cb02f..11039016 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -41,7 +41,7 @@ SR_API struct sr_hwcap_option sr_hwcap_options[] = { {SR_HWCAP_HORIZ_TRIGGERPOS, SR_T_FLOAT, "Horizontal trigger position", "horiz_triggerpos"}, {SR_HWCAP_BUFFERSIZE, SR_T_UINT64, "Buffer size", "buffersize"}, - {SR_HWCAP_TIMEBASE, SR_T_RATIONAL, "Time base", "timebase"}, + {SR_HWCAP_TIMEBASE, SR_T_RATIONAL_PERIOD, "Time base", "timebase"}, {SR_HWCAP_FILTER, SR_T_CHAR, "Filter targets", "filter"}, {0, 0, NULL, NULL}, }; diff --git a/sigrok.h.in b/sigrok.h.in index 7da26b2f..8ff1b092 100644 --- a/sigrok.h.in +++ b/sigrok.h.in @@ -143,7 +143,7 @@ enum { SR_T_CHAR, SR_T_BOOL, SR_T_FLOAT, - SR_T_RATIONAL, + SR_T_RATIONAL_PERIOD, }; struct sr_rational {