From 9a6f92f2ab29890b9694d4599652b389de4982f0 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 4 Feb 2024 23:25:56 +0800 Subject: [PATCH] fix sensor_num --- app/src/app_ble_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/app_ble_service.c b/app/src/app_ble_service.c index 9d09638..c1f9993 100644 --- a/app/src/app_ble_service.c +++ b/app/src/app_ble_service.c @@ -297,7 +297,7 @@ static void prvf_process_ble_rx_data(void* p_event_data, uint16_t len) { sensor_info_receipt_t* receipt = (sensor_info_receipt_t*)txheader->data; uint16_t sendlen = sizeof(ify_hrs_packet_t) + sizeof(sensor_info_receipt_t); - receipt->sensor_num = 1; + receipt->sensor_num = APP_SENSOR_NUM; receipt->sensor_precision = SAMPLE_PRECISION; receipt->sensor_sample_rate = SAMPLE_RATE / 10; receipt->sensor0_pos = kifyhrs_sensor_pos_II;