aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mpm/python/usrp_mpm/bfrfs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/bfrfs.py b/mpm/python/usrp_mpm/bfrfs.py
index 78930913d..7a673e4eb 100644
--- a/mpm/python/usrp_mpm/bfrfs.py
+++ b/mpm/python/usrp_mpm/bfrfs.py
@@ -80,6 +80,7 @@ class BufferFS(object):
def __init__(self, raw_data_buffer, max_size=None, alignment=None, log=None):
+ assert isinstance(raw_data_buffer, bytes)
self.max_size = len(raw_data_buffer) if max_size is None else max_size
self.raw_data_buffer = raw_data_buffer[:self.max_size]
self.alignment = alignment or DEFAULT_ALIGNMENT