Function parameter gives null. Dunno why.

Now it returns:
LogTemp: Warning: Current: 0.000000
LogTemp: Warning: Current: 0.000000