increase packet size

This commit is contained in:
pigeatgarlic 2025-02-14 18:51:35 +00:00
parent d876be0251
commit bb0a8bb4b7
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#define QUEUE_SIZE 64
#define PACKET_SIZE 512 * 1024
#define PACKET_SIZE 5 * 1024 * 1024
typedef struct {
int active;

View File

@ -309,7 +309,9 @@ main(int argc, char *argv[]) {
auto touch_port = mail->event<input::touch_port_t>(mail::touch_port);
while (!process_shutdown_event->peek() && !local_shutdown->peek()) {
if(touch_port->peek()) {
if(!touch_port->peek()) {
std::this_thread::sleep_for(100ms);
} else {
auto touch = touch_port->pop();
if (touch.has_value()) {
auto value = touch.value();