21
This commit is contained in:
@@ -489,14 +489,21 @@ static void task_business_entry(void *pvParameters)
|
||||
else if (Preprocess_CheckInternalTrigger2D(&raw_img) == 1)
|
||||
{
|
||||
/* Trigger hit! Start burst: this frame is frame #0 */
|
||||
DBG_APP("TRIGGER frm=%d\r\n", (int)raw_img.FrameNumber);
|
||||
PreprocessResult_t meta;
|
||||
TcpTxBuffer_t *tx_buf = use_buffer_A ? &g_TxNetBuffer_A : &g_TxNetBuffer_B;
|
||||
use_buffer_A = !use_buffer_A;
|
||||
tx_buf->ValidPayloadLen = 0;
|
||||
|
||||
if (Preprocess_Execute(&raw_img, tx_buf, &meta) == 0)
|
||||
int8_t pp_ret = Preprocess_Execute(&raw_img, tx_buf, &meta);
|
||||
if (pp_ret == 0)
|
||||
{
|
||||
TcpLogic_BuildAndSendTemperatureFrame(tx_buf, &meta, 0x01, 1);
|
||||
int8_t tx_ret = TcpLogic_BuildAndSendTemperatureFrame(tx_buf, &meta, 0x01, 1);
|
||||
DBG_APP("SEND frm=%d %dx%d ret=%d\r\n",
|
||||
(int)meta.FrameNumber, (int)meta.ValidWidth,
|
||||
(int)meta.ValidHeight, (int)tx_ret);
|
||||
} else {
|
||||
DBG_APP("PP fail ret=%d\r\n", (int)pp_ret);
|
||||
}
|
||||
|
||||
/* Determine burst count from config */
|
||||
|
||||
Reference in New Issue
Block a user