I have a long code written in Arduino101 that works fine. I use a prepared function (connected to a library) in my code that I have not written it. My input to this function is an array. In 99.9999..% of the time, the function works great. However, it might stops due to an unknown reason, maybe because of my wrong input. This causes the program to stop. My question is: how to bypass this function if it fails for any reason? Something like 'on error' function in normal programming.
Thanks a lot in advance,