diff Discovery/Src/base.c @ 380:a7331e4a9ca6 MotionDetection

Minor code cleanup
author ideenmodellierer
date Thu, 10 Oct 2019 22:09:52 +0200
parents 939bc4da6812
children 14fd5f35cb50
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