Replaced broken constrainTemp16 with straightforward safe implementation.
It returned INT_MIN for all negative values!