From 592c8e9ea608a1ece9a58d4b527b299403fd76fe Mon Sep 17 00:00:00 2001
From: Vipin Thomas <vipin.thomas@stud.th-deg.de>
Date: Thu, 24 Jun 2021 22:37:08 +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 3dc95b3..1dc982e 100644
--- a/pixel.cpp
+++ b/pixel.cpp
@@ -38,9 +38,9 @@ void pixel(char key[3],
 	#pragma HLS INTERFACE axis port=dout
 
     pkt_t pkt=din.read();
-    for(i = 0;i<3;i++)
+    for(int i=0;i<3;i++)
 	{
-            key[i]=(int)c+1;
+            key[i]=(int)key[i]+1;
     }
     switch(selector)
     {
-- 
GitLab