From ecbcfd109847291722228e6ac9bd01817cf50311 Mon Sep 17 00:00:00 2001 From: Vipin Thomas <vipin.thomas@stud.th-deg.de> Date: Wed, 23 Jun 2021 10:58:15 +0000 Subject: [PATCH] Update pixel.cpp --- pixel.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pixel.cpp b/pixel.cpp index cc89ef3..042abd2 100644 --- a/pixel.cpp +++ b/pixel.cpp @@ -15,7 +15,7 @@ int addNum=0; long long convert(int n); int convertBinInt(long long n); void decrypt(int data); -void toAscii(char *c); +// void toAscii(char *c); void pixel(char *key, @@ -38,7 +38,8 @@ void pixel(char *key, #pragma HLS INTERFACE axis port=dout pkt_t pkt=din.read(); - toAscii(key); + int n=(int)*key; + *key=(char)n; switch(selector) { case 0: @@ -132,8 +133,8 @@ int dec = 0, i = 7, b=0,rem=0; return dec; } -void toAscii(char *c) { - int n=(int)*c; - c=*(char)n; -} +// void toAscii(char *c) { +// int n=(int)*c; +// c=*(char)n; +// } -- GitLab