fix: Added buffer releasing to requester task

This commit is contained in:
2026-07-01 11:37:55 +01:00
parent c8ebbb2946
commit 6a71c2863d

View File

@@ -62,9 +62,12 @@ void requester_task_main(void *params)
// Read reply message // Read reply message
uint32_t num = *(uint32_t*)buffer; uint32_t num = *(uint32_t*)buffer;
// Release buffer
incphub_release_msg_buffer(cli, buffer);
// Profit (send to UART to ensure it worked) // Profit (send to UART to ensure it worked)
char strbuf[32]; char strbuf[32];
sprintf(strbuf, "%u\r\n", num); sprintf(strbuf, "%lu\r\n", num);
HAL_UART_Transmit(&huart2, strbuf, strlen(strbuf), 9999); HAL_UART_Transmit(&huart2, (uint8_t*)strbuf, strlen(strbuf), 9999);
} }
} }