Got rid of that ugly math, thanks guys, and sortData() is a result of complaints about invalid Char to int conversions. data[chan][0] = atoi(red); doesn't work.
Got rid of that ugly math, thanks guys, and sortData() is a result of complaints about invalid Char to int conversions. data[chan][0] = atoi(red); doesn't work.