comparison 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
comparison
equal deleted inserted replaced
224:ceecabfddb57 225:2bb1db22b5f5
69 #include "data_exchange_main.h" 69 #include "data_exchange_main.h"
70 #include "ostc.h" // for button adjust on hw testboard 1 70 #include "ostc.h" // for button adjust on hw testboard 1
71 #include "tCCR.h" 71 #include "tCCR.h"
72 #include "crcmodel.h" 72 #include "crcmodel.h"
73 73
74 SDiveState stateReal = { 0 }; 74 static SDiveState stateReal = { 0 };
75 SDiveState stateSim = { 0 }; 75 SDiveState stateSim = { 0 };
76 SDiveState stateDeco = { 0 }; 76 SDiveState stateDeco = { 0 };
77
78 SLifeData2 secondaryInformation = { 0 };
79 77
80 SDevice stateDevice = 78 SDevice stateDevice =
81 { 79 {
82 /* max is 0x7FFFFFFF, min is 0x80000000 but also defined in stdint.h :-) */ 80 /* max is 0x7FFFFFFF, min is 0x80000000 but also defined in stdint.h :-) */
83 81
115 stateUsed = &stateSim; 113 stateUsed = &stateSim;
116 } 114 }
117 115
118 _Bool is_stateUsedSetToSim(void) 116 _Bool is_stateUsedSetToSim(void)
119 { 117 {
120 if(stateUsed == &stateSim) 118 return stateUsed == &stateSim;
121 return 1;
122 else
123 return 0;
124
125 } 119 }
126 120
127 const SDiveState * stateRealGetPointer(void) 121 const SDiveState * stateRealGetPointer(void)
128 { 122 {
129 return &stateReal; 123 return &stateReal;