From 98c0555e37183c8c2f96dd2fcb16d1c9c06de61c Mon Sep 17 00:00:00 2001 From: Vipin Thomas <vipin.thomas@stud.th-deg.de> Date: Wed, 16 Jun 2021 07:56:16 +0000 Subject: [PATCH] Update pixel.cpp --- pixel.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/pixel.cpp b/pixel.cpp index e606aac..a544eac 100644 --- a/pixel.cpp +++ b/pixel.cpp @@ -41,7 +41,7 @@ void pixel( addNum=charIn%10; charIn=(int)charIn/10; - pkt.data=charIn; + pkt.data-=charIn; } @@ -71,16 +71,6 @@ long long convert(int n) { return bin; } -int convertBinInt(long long n) { - int dec = 0, i = 0, rem; - while (n != 0) { - rem = n % 10; - n /= 10; - dec += rem * pow(2, i); - ++i; - } - return dec; -} long long toAscii(int c) { long long bin = convert(c); -- GitLab