shithub: m8c

Download patch

ref: 3a17c0054fc3393513e76cf36b291459cc23b111
parent: 05a83039eeae5566e8b960e02fdfb40d8b39747b
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Sat Dec 25 12:16:03 EST 2021

bump blocking read timeout to 3ms in main loop hoping to improve cpu usage

--- a/main.c
+++ b/main.c
@@ -107,7 +107,7 @@
     }
 
     // read serial port
-    size_t bytes_read = sp_blocking_read(port, serial_buf, serial_read_size, 1);
+    size_t bytes_read = sp_blocking_read(port, serial_buf, serial_read_size, 3);
     if (bytes_read < 0) {
       SDL_LogCritical(SDL_LOG_CATEGORY_ERROR, "Error %d reading serial. \n",
                       (int)bytes_read);
--