projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed4d16b
)
优化原相血氧测量
1950/6
1950/head
author
penglei
<1624952103@qq.com>
Thu, 10 Jul 2025 10:43:18 +0000
(18:43 +0800)
committer
penglei
<1624952103@qq.com>
Thu, 10 Jul 2025 10:43:18 +0000
(18:43 +0800)
code/sdk/drivers/peripheral/ppg/pah8009/sensor/pah800x_main.c
patch
|
blob
|
history
diff --git
a/code/sdk/drivers/peripheral/ppg/pah8009/sensor/pah800x_main.c
b/code/sdk/drivers/peripheral/ppg/pah8009/sensor/pah800x_main.c
index
85929d6
..
2229772
100644
(file)
--- a/
code/sdk/drivers/peripheral/ppg/pah8009/sensor/pah800x_main.c
+++ b/
code/sdk/drivers/peripheral/ppg/pah8009/sensor/pah800x_main.c
@@
-347,6
+347,12
@@
void pah_sensor_stop(void)
{
\r
touch_sensor_disable();
\r
}
\r
+
\r
+ if(work_mode == 1)
\r
+ hr_algorithm_disable();
\r
+ else if(work_mode == 2)
\r
+ spo2_algorithm_disable();
\r
+
\r
pah_800x_deinit(&_main.pah_800x);
\r
\r
hr = 0;
\r
@@
-1698,7
+1704,7
@@
void pah8009_control(char *mode,uint8_t enable)
} else if (strcmp(mode, "spo2") == 0) {
\r
// md = SPO2_MODE;
\r
pah_sensor_init(diw_4mm_ir_r_ir_spo2);
\r
-
auto_mode
_sensor_start();
\r
+
ppg_only
_sensor_start();
\r
work_mode = 2;
\r
} else if (strcmp(mode, "leaklight") == 0) {
\r
// md = FT_LEAK_LIGHT_MODE;
\r