diff --git a/pixel.cpp b/pixel.cpp
index e606aacd9daf165cd5101b930d9a7b448977ac0c..a544eac8aad39627c78ee39195a37064da4f3de0 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);