Skip to content

Commit eb16db3

Browse files
committed
Revert "Fixed message buffer allocations."
This reverts commit 3cb1d61.
1 parent 3cb1d61 commit eb16db3

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

gnuradio/gr-scratch_radio/lib/message_source_impl.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ namespace gr {
5151
if ((!d_source) || (!d_source->is_open ())) {
5252
// TODO: How do we handle missing files?
5353
}
54-
d_msg_buffer = new uint8_t [MSG_BUFFER_LEN];
5554

5655
// Determine the output buffer threshold required to limit the
5756
// latency imposed by the output buffer.
@@ -70,7 +69,6 @@ namespace gr {
7069
d_source->close();
7170
}
7271
delete d_source;
73-
delete[] d_msg_buffer;
7472
}
7573
}
7674

gnuradio/gr-scratch_radio/lib/message_source_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace gr {
3838
int d_msg_byte_count;
3939
int d_msg_length;
4040
std::ifstream* d_source;
41-
uint8_t* d_msg_buffer;
41+
uint8_t d_msg_buffer[MSG_BUFFER_LEN];
4242

4343
bool m_poll_for_message(void);
4444

gnuradio/gr-scratch_radio/lib/ook_modulator_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include <scratch_radio/ook_modulator.h>
2525

26-
#define OUTPUT_LATENCY 250
26+
#define OUTPUT_LATENCY 1000
2727

2828
namespace gr {
2929
namespace scratch_radio {

gnuradio/gr-scratch_radio/lib/simple_deframer_impl.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ namespace gr {
4848
d_header = 0;
4949
d_msg_byte_count = 0;
5050
d_msg_length = 0;
51-
d_msg_buffer = new uint8_t [256];
5251
d_checksum_0 = 0;
5352
d_checksum_1 = 0;
5453
d_idle_count = 0;
@@ -61,7 +60,6 @@ namespace gr {
6160
*/
6261
simple_deframer_impl::~simple_deframer_impl()
6362
{
64-
delete[] d_msg_buffer;
6563
}
6664

6765
void

gnuradio/gr-scratch_radio/lib/simple_deframer_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace gr {
3434
uint32_t d_header;
3535
int d_msg_byte_count;
3636
int d_msg_length;
37-
uint8_t* d_msg_buffer;
37+
uint8_t d_msg_buffer[256];
3838
uint32_t d_checksum_0;
3939
uint32_t d_checksum_1;
4040
int d_idle_count;

0 commit comments

Comments
 (0)