diff Small_CPU/Src/spi.c @ 84:e6abbef57475 kittz

Remove unusable code!!! prepare data for SPI in ONLY 1 IRQ!!!!
author Dmitry Romanov <kitt@bk.ru>
date Wed, 21 Nov 2018 10:25:15 +0300
parents a6f0881074a4
children 923c4566a2a1
line wrap: on
line diff
--- a/Small_CPU/Src/spi.c	Tue Nov 20 12:27:40 2018 +0300
+++ b/Small_CPU/Src/spi.c	Wed Nov 21 10:25:15 2018 +0300
@@ -369,9 +369,10 @@
 	}
 	global.dataSendToMaster.power_on_reset = 0;
 	global.deviceDataSendToMaster.power_on_reset = 0;
-	if(!global.dataSendToSlaveStopEval)
+	if(global.dataUpdateIsNeeded)
 		{
 		scheduleSpecial_Evaluate_DataSendToSlave();
+		global.dataUpdateIsNeeded=0;
 		}
 	SPI_Start_single_TxRx_with_Master();
   }