Commit 5431caf2 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

Bug-fix forgotten Status read of TXT Buffer.

parent 6f837d8f
...@@ -261,7 +261,7 @@ package body txtb_state_feature is ...@@ -261,7 +261,7 @@ package body txtb_state_feature is
-- Insert CAN Frame to Node 1, TXT Buffer i + 1. -- Insert CAN Frame to Node 1, TXT Buffer i + 1.
-- Send "set_ready" command. -- Send "set_ready" command.
-------------------------------------------------------------------- --------------------------------------------------------------------
nxt_buffer := ((i + 1) mod TXT_BUFFER_COUNT) + 1; nxt_buffer := (i mod TXT_BUFFER_COUNT) + 1;
CAN_insert_TX_frame(CAN_frame, nxt_buffer, ID_1, mem_bus(1)); CAN_insert_TX_frame(CAN_frame, nxt_buffer, ID_1, mem_bus(1));
send_TXT_buf_cmd(buf_set_ready, nxt_buffer, ID_1, mem_bus(1)); send_TXT_buf_cmd(buf_set_ready, nxt_buffer, ID_1, mem_bus(1));
...@@ -283,6 +283,7 @@ package body txtb_state_feature is ...@@ -283,6 +283,7 @@ package body txtb_state_feature is
-- TXT Buffer ends up in "Aborted" state. -- TXT Buffer ends up in "Aborted" state.
-------------------------------------------------------------------- --------------------------------------------------------------------
send_TXT_buf_cmd(buf_set_abort, nxt_buffer, ID_1, mem_bus(1)); send_TXT_buf_cmd(buf_set_abort, nxt_buffer, ID_1, mem_bus(1));
get_tx_buf_state(nxt_buffer, txt_state, ID_1, mem_bus(1));
if (txt_state /= buf_aborted) then if (txt_state /= buf_aborted) then
-- LCOV_EXCL_START -- LCOV_EXCL_START
o.outcome := false; o.outcome := false;
......
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