diff --git a/usrc/project_configs.h b/usrc/project_configs.h index 1a3c5e6..502c86e 100644 --- a/usrc/project_configs.h +++ b/usrc/project_configs.h @@ -1,7 +1,7 @@ #pragma once #define VERSION(main, sub, fix) (main << 16 | sub << 8 | fix << 0) -#define PC_VERSION VERSION(3, 3, 3) +#define PC_VERSION VERSION(3, 3, 4) #define PC_MANUFACTURER0 ('i' | 'f' << 8 | 'l' << 16 | 'y' << 24) #define PC_MANUFACTURER1 ('t' | 'o' << 8 | 'p' << 16 | '\0' << 24) diff --git a/usrc/service/report_generator_service.c b/usrc/service/report_generator_service.c index 67cb724..a5b89c9 100644 --- a/usrc/service/report_generator_service.c +++ b/usrc/service/report_generator_service.c @@ -20,6 +20,7 @@ static uint32_t m_xsync_workstate_start_sig_irq_pin_off; static uint32_t m_timecode_trigger_input_off; static uint32_t m_xync_trigger_input_off; static uint32_t m_xyns_camera_sync_packet_last_report_tp; +static bool m_first_frame = true; #define TAG "timecode" /** * @brief 构建并发送时间码数据包 @@ -160,8 +161,9 @@ static void xync_signal_report_thread(void const *argument) { create_and_send_timecode(tc0, tc1, cnt); // timecode广播包 last_report_packet_time = xs_get_ticket(); - second = daycnt * 24 * 3600 + result.timeinall; - if (dtime >= 1|| second == 0) { + if (dtime >= 1 || m_first_frame) { + m_first_frame = false; + second = daycnt * 24 * 3600 + result.timeinall; create_and_send_camera_sync_msg(second); } }