shithub: m8c

Download patch

ref: d00e51c0c1f2170c1f4d0838bbcd0e52e534bcef
parent: b7607ed199cf4189d9e56fe8b053a0969abda701
author: Daniel Hooper <44912292+daniel214@users.noreply.github.com>
date: Sat Feb 26 19:14:32 EST 2022

Fix serial read error checking bug

--- 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, 3);
+    int 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);
--