Commit 199ce8ac authored by Raymond Knopp's avatar Raymond Knopp

fixed segfault in ulsim when trials > 1000

parent 4d47e3da
...@@ -1275,6 +1275,7 @@ int main(int argc, char **argv) { ...@@ -1275,6 +1275,7 @@ int main(int argc, char **argv) {
if (t_rx > 2000 ) if (t_rx > 2000 )
n_rx_dropped++; n_rx_dropped++;
if (trials < 1000) {
appendVarArray(table_tx, &t_tx); appendVarArray(table_tx, &t_tx);
appendVarArray(table_tx_ifft, &t_tx_ifft); appendVarArray(table_tx_ifft, &t_tx_ifft);
appendVarArray(table_tx_mod, &t_tx_mod ); appendVarArray(table_tx_mod, &t_tx_mod );
...@@ -1283,6 +1284,7 @@ int main(int argc, char **argv) { ...@@ -1283,6 +1284,7 @@ int main(int argc, char **argv) {
appendVarArray(table_rx_fft, &t_rx_fft ); appendVarArray(table_rx_fft, &t_rx_fft );
appendVarArray(table_rx_demod, &t_rx_demod ); appendVarArray(table_rx_demod, &t_rx_demod );
appendVarArray(table_rx_dec, &t_rx_dec ); appendVarArray(table_rx_dec, &t_rx_dec );
}
} //trials } //trials
// sort table // sort table
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment