diff --git a/test/lib/CANtestLib.vhd b/test/lib/CANtestLib.vhd index ee2c9c0f403dc490276d62a25e700c4fbdccf1ef..446bb3837d3364a642650a059eb5ed9da9940815 100644 --- a/test/lib/CANtestLib.vhd +++ b/test/lib/CANtestLib.vhd @@ -3157,10 +3157,10 @@ package body CANtestLib is -- Wait until unit starts to transmitt or recieve while (true) loop CAN_read(r_data, MODE_ADR, ID, mem_bus); - if (exit_trans and r_data(RS_IND) = '1') then + if (exit_trans and r_data(TS_IND) = '1') then exit; end if; - if (exit_rec and r_data(TS_IND) = '1') then + if (exit_rec and r_data(RS_IND) = '1') then exit; end if; end loop;