|
@ -98,9 +98,9 @@ static void prvf_try_report_sensor_drop_event(uint8_t dropstate0, uint8_t dropst |
|
|
|
|
|
|
|
|
static void prvf_try_report_sample_end_event() { |
|
|
static void prvf_try_report_sample_end_event() { |
|
|
ify_hrs_packet_t* reportpacket = (ify_hrs_packet_t*)m_reportbuf; |
|
|
ify_hrs_packet_t* reportpacket = (ify_hrs_packet_t*)m_reportbuf; |
|
|
reportpacket->cmd = ify_hrs_report_sample_finish_end; |
|
|
|
|
|
reportpacket->frame_index = 0; |
|
|
|
|
|
reportpacket->frame_type = kifyhrs_pt_report; |
|
|
|
|
|
|
|
|
reportpacket->cmd = ify_hrs_report_sample_finish_end; |
|
|
|
|
|
reportpacket->frame_index = 0; |
|
|
|
|
|
reportpacket->frame_type = kifyhrs_pt_report; |
|
|
|
|
|
|
|
|
uint16_t sendlen = sizeof(ify_hrs_packet_t); |
|
|
uint16_t sendlen = sizeof(ify_hrs_packet_t); |
|
|
zdatachannel_data_send2(m_reportbuf, sendlen); |
|
|
zdatachannel_data_send2(m_reportbuf, sendlen); |
|
@ -142,6 +142,9 @@ void prvf_report_sample_data(uint32_t frameIndex, uint32_t data, uint32_t data2, |
|
|
reportpacket->data[10] = (data3 >> 16) & 0xFF; |
|
|
reportpacket->data[10] = (data3 >> 16) & 0xFF; |
|
|
reportpacket->data[11] = 0; |
|
|
reportpacket->data[11] = 0; |
|
|
|
|
|
|
|
|
|
|
|
// reportpacket->data[12] = 0xFE; |
|
|
|
|
|
// reportpacket->data[13] = 0xEF; |
|
|
|
|
|
|
|
|
uint16_t sendlen = sizeof(heartrate_report_packet_t) + 4 * 3; |
|
|
uint16_t sendlen = sizeof(heartrate_report_packet_t) + 4 * 3; |
|
|
zdatachannel_data_send2(m_reportbuf, sendlen); |
|
|
zdatachannel_data_send2(m_reportbuf, sendlen); |
|
|
return; |
|
|
return; |
|
|