fix: Added buffer releasing to requester task
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user