From ebb547c53f976a0b752154ffc90ad561bc4ede84 Mon Sep 17 00:00:00 2001 From: frubi Date: Fri, 6 Dec 2019 20:19:40 +0100 Subject: [PATCH] Fixed type of return values --- LED-Board.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LED-Board.ino b/LED-Board.ino index 7929619..4156cf7 100644 --- a/LED-Board.ino +++ b/LED-Board.ino @@ -135,7 +135,7 @@ bool read_header(EthernetClient cli, source_t* src) { bool complete = false; while (offset < 6) { - byte value = cli.read(); + int value = cli.read(); if (value == -1) { break; } @@ -182,7 +182,7 @@ bool read_pixels(EthernetClient cli, source_t* src, image_t* img) { img->height = src->height; while (true) { - byte value = cli.read(); + int value = cli.read(); if (value == -1) { return false; } @@ -229,9 +229,9 @@ void loop() { seen_client = true; } else { - if (seen_client == false) { + //if (seen_client == false) { default_image(&image); send_image(&image); - } + //} } }