From: Joey Castillo Date: Sat, 17 May 2025 22:46:13 +0000 (-0400) Subject: irda upload: increase receive buffer to 256 bytes X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=924f307cf77f4b6d384978f1242df2e74389dc35;p=sensor-watch.git irda upload: increase receive buffer to 256 bytes --- diff --git a/watch-faces/io/irda_upload_face.c b/watch-faces/io/irda_upload_face.c index f71b065..76b8764 100644 --- a/watch-faces/io/irda_upload_face.c +++ b/watch-faces/io/irda_upload_face.c @@ -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");