Mercurial > public > ostc4
diff Small_CPU/Src/baseCPU2.c @ 239:e4207f0aaa4b div-fixes-5
cleanup: factor out dataSendToSlaveStopEval
The global dataSendToSlaveStopEval was set all over the place, but never
tested, so useless to set it. And remove an unused piece of code. Trivial
cleanup.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Mon, 08 Apr 2019 10:35:29 +0200 |
parents | b95741467355 |
children | 2f0eb65df557 |
line wrap: on
line diff
--- a/Small_CPU/Src/baseCPU2.c Mon Apr 08 10:16:17 2019 +0200 +++ b/Small_CPU/Src/baseCPU2.c Mon Apr 08 10:35:29 2019 +0200 @@ -48,7 +48,7 @@ [..] HAL_SPI_TxRxCpltCallback() restarts DMA and will call scheduleSpecial_Evaluate_DataSendToSlave() only if it is not blocked - by I2C for example by setting global.dataSendToSlaveStopEval to 0. + by I2C. If the evaluation is blocked it has to be tested and executed afterwards. I2C is executed _without_ the usage of interrupts.