diff Small_CPU/Src/scheduler.c @ 82:a6f0881074a4 kittz

+i2c analog noise filtering spi more stable
author Dmitry Romanov <kitt@bk.ru>
date Tue, 20 Nov 2018 12:08:19 +0300
parents 5f11787b4f42
children e6abbef57475
line wrap: on
line diff
--- a/Small_CPU/Src/scheduler.c	Sat Oct 06 15:02:11 2018 +0200
+++ b/Small_CPU/Src/scheduler.c	Tue Nov 20 12:08:19 2018 +0300
@@ -406,7 +406,8 @@
   */
 void schedule_check_resync(void)
 {
-	if((global.check_sync_not_running >= 10) || (global.dataSendToSlaveIsNotValidCount >= 2))
+	//TODO: (kittz) test for stability
+	if((global.check_sync_not_running >= 10))
 	{
 		global.dataSendToSlaveIsNotValidCount = 0;
 		global.check_sync_not_running = 0;