From b9efd5d7b6e6500ad4934a7074ca798644a8fcd6 Mon Sep 17 00:00:00 2001 From: Alan <60433566+alanesq@users.noreply.github.com> Date: Tue, 6 Jul 2021 15:51:04 +0100 Subject: [PATCH] Update esp32camdemo-greyscale.ino --- Misc/esp32camdemo-greyscale.ino | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Misc/esp32camdemo-greyscale.ino b/Misc/esp32camdemo-greyscale.ino index 2ca14cb..f868edd 100644 --- a/Misc/esp32camdemo-greyscale.ino +++ b/Misc/esp32camdemo-greyscale.ino @@ -411,15 +411,13 @@ client.write("
Greyscale data
"); if (!frame) return false; - byte pixel; - // for each pixel in image // only shows first 3 lines of image as otherwise there is an awful lot of data // to show all data use the line: for (size_t i = 0; i < frame->len; i++) { for (size_t i = 0; i < (160 * 3); i++) { const uint16_t x = i % WIDTH; // x position in image const uint16_t y = floor(i / WIDTH); // y position in image - pixel = frame->buf[i]; // pixel value + byte pixel = frame->buf[i]; // pixel value // show data if (x==0) client.println("
"); // new line