summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/message_burst_source_impl.cc
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-07-07 12:18:00 -0400
committerTom Rondeau <tom@trondeau.com>2014-07-07 12:18:00 -0400
commit597b93798a804cde1783d6d2ab53b348d57c44cd (patch)
treeb65e73bb0de634ff5d209b15971ebdabf369a45c /gr-blocks/lib/message_burst_source_impl.cc
parent1151e5502ccd440ebd89599cf7e4be4fb5ed8334 (diff)
Removing trailing/extra whitespaces before release.
We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
Diffstat (limited to 'gr-blocks/lib/message_burst_source_impl.cc')
-rw-r--r--gr-blocks/lib/message_burst_source_impl.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/gr-blocks/lib/message_burst_source_impl.cc b/gr-blocks/lib/message_burst_source_impl.cc
index 573959e027..0ce0a9284f 100644
--- a/gr-blocks/lib/message_burst_source_impl.cc
+++ b/gr-blocks/lib/message_burst_source_impl.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012-2013 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -95,7 +95,7 @@ namespace gr {
//
// Consume whatever we can from the current message
//
-
+
int mm = std::min(noutput_items - nn,
(int)((d_msg->length() - d_msg_offset) / d_itemsize));
memcpy(out, &(d_msg->msg()[d_msg_offset]), mm * d_itemsize);
@@ -112,7 +112,7 @@ namespace gr {
//tag end of burst
add_item_tag(0, //stream ID
abs_sample_count+nn-1, //sample number
- pmt::string_to_symbol("tx_eob"),
+ pmt::string_to_symbol("tx_eob"),
pmt::from_bool(1),
d_me); //block src id
}
@@ -133,7 +133,7 @@ namespace gr {
//tag start of burst
add_item_tag(0, //stream ID
abs_sample_count+nn, //sample number
- pmt::string_to_symbol("tx_sob"),
+ pmt::string_to_symbol("tx_sob"),
pmt::from_bool(1),
d_me); //block src id
@@ -141,7 +141,7 @@ namespace gr {
throw std::runtime_error("msg length is not a multiple of d_itemsize");
}
}
-
+
return nn;
}