diff Discovery/Src/data_central.c @ 225:2bb1db22b5f5 div-fixes-3

cleanup: random set of cleanups A random set of cleanups, as found during code reading, and looking around fixing issues. Contains all kinds of things: typo's in comment, typo in variable name, removal of unused code, making things static where possible. Does not contain any functional changes. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Mon, 01 Apr 2019 15:50:41 +0200
parents e1d66bc78f9a
children 2e58a4094770
line wrap: on
line diff
--- a/Discovery/Src/data_central.c	Sun Mar 31 19:35:51 2019 +0200
+++ b/Discovery/Src/data_central.c	Mon Apr 01 15:50:41 2019 +0200
@@ -71,12 +71,10 @@
 #include "tCCR.h"
 #include "crcmodel.h"
 
-SDiveState stateReal = { 0 };
+static SDiveState stateReal = { 0 };
 SDiveState stateSim = { 0 };
 SDiveState stateDeco = { 0 };
 
-SLifeData2 secondaryInformation  = { 0 };
-
 SDevice stateDevice =
 {
 	/* max is 0x7FFFFFFF, min is 0x80000000 but also defined in stdint.h :-) */
@@ -117,11 +115,7 @@
 
 _Bool is_stateUsedSetToSim(void)
 {
-	if(stateUsed == &stateSim)
-		return 1;
-	else
-		return 0;
-
+	return stateUsed == &stateSim;
 }
 
 const SDiveState * stateRealGetPointer(void)