diff --git a/CHIRP/board/app_config.h b/CHIRP/board/app_config.h
index 9d3e68a..e7f5d0b 100644
--- a/CHIRP/board/app_config.h
+++ b/CHIRP/board/app_config.h
@@ -57,13 +57,13 @@
*/
/* CH101 GPR - general purpose rangefinding, standard range */
-#define CHIRP_SENSOR_FW_INIT_FUNC ch101_gpr_init
+// #define CHIRP_SENSOR_FW_INIT_FUNC ch101_gpr_init
/* CH101 GPR NARROW - general purpose rangefinding, narrow FoV */
// #define CHIRP_SENSOR_FW_INIT_FUNC ch101_gpr_narrow_init
/* CH101 GPR SR - general purpose rangefinding, short range */
-// #define CHIRP_SENSOR_FW_INIT_FUNC ch101_gpr_sr_init
+#define CHIRP_SENSOR_FW_INIT_FUNC ch101_gpr_sr_init
/* CH101 GPR SR NARROW - general purpose rangefinding, short range, narrow FoV */
// #define CHIRP_SENSOR_FW_INIT_FUNC ch101_gpr_sr_narrow_init
@@ -81,14 +81,14 @@
* here is greater than the maximum possible range, the maximum possible range
* will be used.
*/
-#define CHIRP_SENSOR_MAX_RANGE_MM (1000) /* maximum range, in mm */
+#define CHIRP_SENSOR_MAX_RANGE_MM (250) /* maximum range, in mm */
/* Static target rejection range
* This value specifies if static target rejection (STR) will be used. If
* CHIRP_SENSOR_STATIC_RANGE is non-zero, STR will be enabled and will apply
* to the specified number of samples at the beginning of a measurement.
*/
-#define CHIRP_SENSOR_STATIC_RANGE (100) /* static target rejection sample
+#define CHIRP_SENSOR_STATIC_RANGE (40) /* static target rejection sample
range, in samples (0=disabled) */
diff --git a/XLSW_SONIC/Keil_project/Project.uvoptx b/XLSW_SONIC/Keil_project/Project.uvoptx
index b05d307..3df349f 100644
--- a/XLSW_SONIC/Keil_project/Project.uvoptx
+++ b/XLSW_SONIC/Keil_project/Project.uvoptx
@@ -276,7 +276,7 @@
1
2
1
- 0
+ 1
0
0
..\main.c
@@ -672,7 +672,7 @@
7
31
1
- 0
+ 1
0
0
..\..\CHIRP\drivers\src\ch_api.c
@@ -752,6 +752,30 @@
0
0
+
+ 7
+ 38
+ 1
+ 0
+ 0
+ 0
+ ..\..\CHIRP\drivers\src\ch101_gpr_sr.c
+ ch101_gpr_sr.c
+ 0
+ 0
+
+
+ 7
+ 39
+ 1
+ 0
+ 0
+ 0
+ ..\..\CHIRP\drivers\src\ch101_gpr_sr_fw.c
+ ch101_gpr_sr_fw.c
+ 0
+ 0
+
@@ -762,9 +786,9 @@
0
8
- 38
+ 40
1
- 1
+ 0
0
0
..\..\CHIRP\ultrasound\src\ultrasound_display_config_info.c
diff --git a/XLSW_SONIC/Keil_project/Project.uvprojx b/XLSW_SONIC/Keil_project/Project.uvprojx
index e665939..dade7f7 100644
--- a/XLSW_SONIC/Keil_project/Project.uvprojx
+++ b/XLSW_SONIC/Keil_project/Project.uvprojx
@@ -598,6 +598,16 @@
1
..\..\CHIRP\drivers\src\chbsp_dummy.c
+
+ ch101_gpr_sr.c
+ 1
+ ..\..\CHIRP\drivers\src\ch101_gpr_sr.c
+
+
+ ch101_gpr_sr_fw.c
+ 1
+ ..\..\CHIRP\drivers\src\ch101_gpr_sr_fw.c
+
diff --git a/XLSW_SONIC/main.c b/XLSW_SONIC/main.c
index 31d2bfc..c9174ca 100644
--- a/XLSW_SONIC/main.c
+++ b/XLSW_SONIC/main.c
@@ -1,4 +1,3 @@
-// test
/*!
\file main.c
\brief led spark with systick, USART print and key example