changeset 380:a7331e4a9ca6 MotionDetection

Minor code cleanup
author ideenmodellierer
date Thu, 10 Oct 2019 22:09:52 +0200
parents 0dbf550dc743
children 695434a6dcf6
files Discovery/Src/base.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/base.c	Mon Sep 16 22:49:34 2019 +0200
+++ b/Discovery/Src/base.c	Thu Oct 10 22:09:52 2019 +0200
@@ -502,16 +502,16 @@
 						pitchstate = DETECT_NOTHING;
 						break;
 				}
+				if(DETECT_NEG_PITCH == pitchstate)
+	           	{
+	            	StoreButtonAction((uint8_t)ACTION_PITCH_NEG);
+	           	}
+	            if(DETECT_POS_PITCH == pitchstate)
+	           	{
+	            	StoreButtonAction((uint8_t)ACTION_PITCH_POS);
+	           	}
         	}
 
-			if(DETECT_NEG_PITCH == pitchstate)
-           	{
-            	StoreButtonAction((uint8_t)ACTION_PITCH_NEG);
-           	}
-            if(DETECT_POS_PITCH == pitchstate)
-           	{
-            	StoreButtonAction((uint8_t)ACTION_PITCH_POS);
-           	}
 
 // Enable this to make the simulator write a logbook entry
 // #define SIM_WRITES_LOGBOOK 1