From a0971cbd15fc5d337ee87e388de0a077a83af509 Mon Sep 17 00:00:00 2001 From: Vipin Thomas <vipin.thomas@stud.th-deg.de> Date: Sat, 12 Jun 2021 23:48:09 +0000 Subject: [PATCH] Update pixel.cpp --- pixel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pixel.cpp b/pixel.cpp index 27d75ed..f4ecc40 100644 --- a/pixel.cpp +++ b/pixel.cpp @@ -37,12 +37,12 @@ void pixel( charIn=toAscii((char)character); } - if((count_streams >= 3 * (position1 - 1)) && (count_streams < 3 * (position2))){ + if((count_streams >= 3 * (position1 - 1)) && (count_streams < 3 * (position2))&& (charIn!=0)){ addNum=charIn%10; charIn=(int)charIn/10; - pkt.data=addNum; + pkt.data=charIn; } -- GitLab