How about putting some serial prints in the above function so you can 'see' what's going wrong?
Please edit your post and enclose your code in code tags.
How about putting some serial prints in the above function so you can 'see' what's going wrong?
Please edit your post and enclose your code in code tags.