From 84068714f9db0f86cfa12e7d52a0be7913ce2f12 Mon Sep 17 00:00:00 2001 From: Vipin Thomas <vipin.thomas@stud.th-deg.de> Date: Fri, 4 Jun 2021 09:40:27 +0000 Subject: [PATCH] Update pixel.cpp --- pixel.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pixel.cpp b/pixel.cpp index 54df468..862be46 100644 --- a/pixel.cpp +++ b/pixel.cpp @@ -25,14 +25,12 @@ void pixel( if(counter==w){ pkt.data*=2; - } - else if(counter< w){ - count++; - } - else{ counter=0; + } + count++; + dout.write(pkt); -- GitLab