Skip to content
Snippets Groups Projects
Commit 83789b12 authored by Mikhail Vanyulin's avatar Mikhail Vanyulin
Browse files

rs485echo: fix segmentation fault in echo mode


Signed-off-by: default avatarMikhail Vanyulin <mikhail.vanyulin@rtsoft.de>
parent 0500e397
No related branches found
No related tags found
1 merge request!249rs485echo: fix segmentation fault in echo mode
......@@ -501,7 +501,7 @@ main(int argc, /* number of command line parameters */
// Perform global test setup
setup();
if ( fake_data_len > message->length)
if (!echo_mode && fake_data_len > message->length)
fake_data_len = message->length;
tst_resm(TINFO, "Starting RS485 echo test%s", echo_mode?" in echo mode.":".");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment