You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libs/misc/hrm_vc31.c
+4-21
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@
13
13
*/
14
14
15
15
#include"hrm.h"
16
+
#include"hrm_vc31.h"
16
17
#include"jsutils.h"
17
18
#include"platform_config.h"
18
19
#include"jshardware.h"
@@ -164,25 +165,6 @@ typedef enum {
164
165
VC31B_DEVICE
165
166
} VC31Type;
166
167
167
-
// Hack to fix Eclipse syntax lint
168
-
#ifndefPACKED_FLAGS
169
-
#definePACKED_FLAGS
170
-
#endif
171
-
// ---
172
-
173
-
// VC31 info shared between VC31A/B
174
-
typedefstruct {
175
-
boolisWearing;
176
-
int8_tisWearCnt, unWearCnt; // counters for switching worn/unworn state
177
-
uint16_tppgValue; // current PPG value
178
-
uint16_tppgLastValue; // last PPG value
179
-
int16_tppgOffset; // PPG 'offset' value. When PPG adjusts we change the offset so it matches the last value, then slowly adjust 'ppgOffset' back down to 0
180
-
uint8_twasAdjusted; // true if LED/etc adjusted since the last reading
181
-
// the meaning of these is device-dependent but it's nice to have them in one place
int8_tisWearCnt, unWearCnt; // counters for switching worn/unworn state
27
+
uint16_tppgValue; // current PPG value
28
+
uint16_tppgLastValue; // last PPG value
29
+
int16_tppgOffset; // PPG 'offset' value. When PPG adjusts we change the offset so it matches the last value, then slowly adjust 'ppgOffset' back down to 0
30
+
uint8_twasAdjusted; // true if LED/etc adjusted since the last reading
31
+
uint16_tenvValue; // env value (but VC31B has 3 value slots so we just use the one we know is ok here)
32
+
// the meaning of these is device-dependent but it's nice to have them in one place
0 commit comments