Revision 2532270b gr-vrt/src/vrt_source_32fc.cc
| b/gr-vrt/src/vrt_source_32fc.cc | ||
|---|---|---|
| 105 | 105 |
// copy the context into struct so we cant reference bad memory |
| 106 | 106 |
// print the components of the struct, prove that it works! |
| 107 | 107 |
all_context_t if_context; |
| 108 |
memcpy(((uint32_t*)&if_context) + 5, payload, sizeof(uint32_t)*n32_bit_words);//FIXME
|
|
| 108 |
memcpy(&if_context, payload, sizeof(uint32_t)*n32_bit_words);//FIXME
|
|
| 109 | 109 |
fprintf(stderr, "\nIF-Context-Components:\n"); |
| 110 | 110 |
if_context.beamformer.rf_ref_freq = ntohll(if_context.beamformer.rf_ref_freq); |
| 111 | 111 |
fprintf(stderr, "Ref Freq %f Hz\n", vrt_freq_to_double(if_context.beamformer.rf_ref_freq)); |
Also available in: Unified diff