Mercurial > public > ostc4
diff Discovery/Src/data_exchange_main.c @ 763:aa6006975e76
increase HAL_Delay to 10ms for cold-start-button reset
+ typos and comment changes
author | heinrichsweikamp |
---|---|
date | Sun, 26 Mar 2023 18:34:30 +0200 |
parents | df0d43da1614 |
children | 45b8f3c2acce |
line wrap: on
line diff
--- a/Discovery/Src/data_exchange_main.c Sun Mar 26 11:27:29 2023 +0200 +++ b/Discovery/Src/data_exchange_main.c Sun Mar 26 18:34:30 2023 +0200 @@ -283,7 +283,7 @@ } else { - if(data_old__lost_connection_to_slave_counter_temp >= 2) /* error reaction is triggered whenever communication could not be reestablishen within two cycles */ + if(data_old__lost_connection_to_slave_counter_temp >= 2) /* error reaction is triggered whenever communication could not be reestablished within two cycles */ { data_old__lost_connection_to_slave_counter_temp = 0; if(DataEX_check_header_and_footer_shifted()) @@ -299,7 +299,7 @@ { HAL_SPI_Abort_IT(&cpu2DmaSpi); } - /* reset of own DMA does not work ==> request reset of slave dma by indicating shifted receiption */ + /* reset of own DMA does not work ==> request reset of slave dma by indicating shifted reception */ if (data_old__lost_connection_to_slave_counter_retry == 1) { dataOut.header.checkCode[SPI_HEADER_INDEX_RX_STATE] = SPI_RX_STATE_SHIFTED;