Fixed what looked like segfault in calibration routines.

Looks like gcc got confused about what "settings" variable really is in each case. Giving function arguments new, unique names fixes the issue with calibration routine crashing the PSoC.