Skip to content
Snippets Groups Projects
Commit 98c0555e authored by Vipin Thomas's avatar Vipin Thomas
Browse files

Update pixel.cpp

parent c65a547d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment