From 8c810109e3f15902917558546c210cb478afe4ae Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 14 Nov 2022 16:41:13 -0500 Subject: [PATCH] print_file_hex only print non-white pixels --- cubesatsim/cubesatsim.ino | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 0216799c..d52b844f 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -4478,9 +4478,12 @@ void print_file_hex(char* filename, int bytes) { File myFile = LittleFS.open(filename, "r"); while (count < bytes) { myFile.readBytes(buff, 3); - print_hex2(buff[0]); - print_hex2(buff[1]); - print_hex2(buff[2]); + // print_hex2(buff[0]); + // print_hex2(buff[1]); + // print_hex2(buff[2]); + + if ((buff[0]!=0xff) || (buff[1]!=0xff) || (buff[2]!=0xff)) + Serial.printf("3Non white pixel at %d, %d R: %d G: %d B: %d\n", line, i, buff[0], buff[1],buff[2]); count += 3; } Serial.println(" ");