diff Discovery/Src/tMenuEditXtra.c @ 288:ba229a012ac7 div-fixes-6

cleanup: no useless checks for simulator state and some more in the style of commit 74a8296a2318. And in addition more cleanup like removing commented and unused code, and making things static. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Mon, 29 Apr 2019 19:43:05 +0200
parents 74a8296a2318
children 77de014928d6
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditXtra.c	Mon May 06 15:45:19 2019 +0200
+++ b/Discovery/Src/tMenuEditXtra.c	Mon Apr 29 19:43:05 2019 +0200
@@ -77,11 +77,7 @@
 
 void openEdit_SetManualMarker(void)
 {
-    if(stateUsed == stateRealGetPointer())
-        stateRealGetPointerWrite()->events.manualMarker = 1;
-    else
-        stateSimGetPointerWrite()->events.manualMarker = 1;
-
+    stateUsedWrite->events.manualMarker = 1;
     exitMenuEdit_to_Home();
 }