diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-08-27 08:30:20 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-08-27 08:30:20 +0200 |
commit | 70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f (patch) | |
tree | a21fb353a0b5bcdd89ae249feaf82c4715249cc3 /src/input/Prbs.cpp | |
parent | 22df1554f5b6dabfd9c8bb18a0107c36a3cf2aac (diff) | |
download | dabmux-70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f.tar.gz dabmux-70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f.tar.bz2 dabmux-70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f.zip |
Make InputBase::open() return void
Diffstat (limited to 'src/input/Prbs.cpp')
-rw-r--r-- | src/input/Prbs.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/input/Prbs.cpp b/src/input/Prbs.cpp index 7856a46..821f7b1 100644 --- a/src/input/Prbs.cpp +++ b/src/input/Prbs.cpp @@ -44,7 +44,7 @@ namespace Inputs { // Preferred polynomial is G(x) = x^20 + x^17 + 1 const uint32_t PRBS_DEFAULT_POLY = (1 << 20) | (1 << 17) | (1 << 0); -int Prbs::open(const string& name) +void Prbs::open(const string& name) { if (name.substr(0, 7) != "prbs://") { throw logic_error("Invalid PRBS name"); @@ -73,8 +73,6 @@ int Prbs::open(const string& name) m_prbs.setup(polynomial); } rewind(); - - return 0; } int Prbs::readFrame(uint8_t* buffer, size_t size) |