Both of those errors were due to the min function not being declared.
If you add a min function to your sketch, the error will go away.
Both of those errors were due to the min function not being declared.
If you add a min function to your sketch, the error will go away.