diff options
-rw-r--r-- | gr-uhd/swig/uhd_swig.i | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i index b82d0fdae9..2852447c80 100644 --- a/gr-uhd/swig/uhd_swig.i +++ b/gr-uhd/swig/uhd_swig.i @@ -105,6 +105,10 @@ temp -= what; return temp; } + bool __eq__(const uhd::time_spec_t &what) + { + return (what == *self); + } }; %include <uhd/types/stream_cmd.hpp> |