Commit 199318b5 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

Added fixes of test. Did not realize TXT Buffer can go to OK,

upon sucessfull transmission from Abort in progress...
Signed-off-by: Ille, Ondrej, Ing.'s avatarIlle, Ondrej, Ing <illeondr@fel.cvut.cz>
parent a23b5d4a
......@@ -218,8 +218,13 @@ package body txtb_state_feature is
end if;
--------------------------------------------------------------------
-- Forbid ACK on Node 2 (not to end up in TXT OK)!
-- Wait till transmission end, check that TXT Buffer is in "Aborted"
--------------------------------------------------------------------
get_core_mode(mode, ID_2, mem_bus(2));
mode.acknowledge_forbidden := true;
set_core_mode(mode, ID_2, mem_bus(2));
CAN_wait_bus_idle(ID_1, mem_bus(1));
get_tx_buf_state(i, txt_state, ID_1, mem_bus(1));
if (txt_state /= buf_aborted) then
......@@ -230,6 +235,13 @@ package body txtb_state_feature is
-- LCOV_EXCL_STOP
end if;
--------------------------------------------------------------------
-- Allow ACK Again for Node 2.
--------------------------------------------------------------------
mode.acknowledge_forbidden := false;
set_core_mode(mode, ID_2, mem_bus(2));
--------------------------------------------------------------------
-- Part 3 (set_ready)
......@@ -320,6 +332,13 @@ package body txtb_state_feature is
" is not 'TX Failed' as expected!" severity error;
-- LCOV_EXCL_STOP
end if;
--------------------------------------------------------------------
-- Allow ACK Again for Node 2.
--------------------------------------------------------------------
mode.acknowledge_forbidden := false;
set_core_mode(mode, ID_2, mem_bus(2));
end loop;
end procedure;
......
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