File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -254,20 +254,20 @@ def _corrections(initial_temp, delta_temp):
254254 # # Second order temperature compensation
255255 if initial_temp < 2000 :
256256 delta_2k = initial_temp - 2000
257- temp_factor = delta_2k ** 2 >> 4
258- temp2 = (3 * delta_temp ** 2 ) >> 33
257+ temp_factor = delta_2k ** 2 >> 4
258+ temp2 = (3 * delta_temp ** 2 ) >> 33
259259 offset2 = 61 * temp_factor
260260 sensitivity2 = 29 * temp_factor
261261
262262 if initial_temp < - 1500 :
263263 delta_15k = initial_temp + 1500
264- temp_factor = delta_15k ** 2
264+ temp_factor = delta_15k ** 2
265265
266266 offset2 += 17 * temp_factor
267267 sensitivity2 += 9 * temp_factor
268268 #
269269 else :
270- temp2 = (5 * delta_temp ** 2 ) >> 38
270+ temp2 = (5 * delta_temp ** 2 ) >> 38
271271 offset2 = 0
272272 sensitivity2 = 0
273273 return temp2 , offset2 , sensitivity2
You can’t perform that action at this time.
0 commit comments