]> git.earman.xyz Git - sensor-watch.git/commitdiff
irda upload: increase receive buffer to 256 bytes
authorJoey Castillo <joeycastillo@utexas.edu>
Sat, 17 May 2025 22:46:13 +0000 (18:46 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Sat, 17 May 2025 22:46:13 +0000 (18:46 -0400)
watch-faces/io/irda_upload_face.c

index f71b065e58bc8337f9b91c257ee90ed92b04b48a..76b8764d4e8c70f158db55f73d4ab3d57bf31dee 100644 (file)
@@ -63,8 +63,9 @@ bool irda_upload_face_loop(movement_event_t event, void *context) {
         case EVENT_ACTIVATE:
         case EVENT_TICK:
         {
-            char data[64];
-            size_t bytes_read = uart_read_instance(0, data, 64);
+            // need more work here: we seem to top out at 64 bytes coming in, and even then it takes a lot of tries.
+            char data[256];
+            size_t bytes_read = uart_read_instance(0, data, 256);
             watch_clear_display();
             watch_display_text_with_fallback(WATCH_POSITION_TOP, "IrDA", "IR");