|
|
@ -1,6 +1,7 @@ |
|
|
|
#include <math.h> |
|
|
|
|
|
|
|
#include "app_event.h" |
|
|
|
#include "app_event_distribute.h" |
|
|
|
#include "ble_cmd_process_service.h" |
|
|
|
#include "config.h" |
|
|
|
#include "display_manager.h" |
|
|
@ -11,7 +12,6 @@ |
|
|
|
#include "zdatachannel_service.h" |
|
|
|
#include "znordic.h" |
|
|
|
#include "znordic_device_info_mgr.h" |
|
|
|
#include "app_event_distribute.h" |
|
|
|
|
|
|
|
/******************************************************************************* |
|
|
|
* GLOBAL * |
|
|
@ -333,12 +333,19 @@ static void app_event_listener(void* p_event_data, uint16_t event_size) { |
|
|
|
} |
|
|
|
} else if (p_event->eventType == kevent_capture_little_data_block_event) { |
|
|
|
// µ¥Ö¡ÊµÊ±Éϱ¨ |
|
|
|
ZASSERT(LITTLE_DATA_BLOCK_FRAME_NUM == 4); |
|
|
|
ble_cmder_try_report_one_sample_data(p_event->val.little_data_block.frameIndex, // |
|
|
|
p_event->val.little_data_block.data[0].data, // |
|
|
|
p_event->val.little_data_block.data[1].data, // |
|
|
|
p_event->val.little_data_block.data[2].data, // |
|
|
|
p_event->val.little_data_block.data[3].data // |
|
|
|
ZASSERT(LITTLE_DATA_BLOCK_FRAME_NUM == 5); |
|
|
|
// 12,345 |
|
|
|
// ble_cmder_try_report_one_sample_data(p_event->val.little_data_block.frameIndex, // |
|
|
|
// p_event->val.little_data_block.data[0].data, // |
|
|
|
// p_event->val.little_data_block.data[1].data, // |
|
|
|
// p_event->val.little_data_block.data[2].data, // |
|
|
|
// p_event->val.little_data_block.data[3].data // |
|
|
|
ble_cmder_try_report_one_sample_data(p_event->val.little_data_block.frameIndex, // |
|
|
|
12345, // |
|
|
|
12346, // |
|
|
|
12347, // |
|
|
|
12348, // |
|
|
|
12349 // |
|
|
|
); |
|
|
|
} else if (p_event->eventType == kplod_disconnected_event || !m_plod_state_connected_state) { |
|
|
|
/******************************************************************************* |
|
|
|