From 5567170a266023db1735bc59c4ebd0050c3e4379 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Tue, 7 Feb 2017 08:53:46 +1100 Subject: [PATCH] Tools: update offline sensor calibration script Fix typographical error --- Tools/process_sensor_caldata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/process_sensor_caldata.py b/Tools/process_sensor_caldata.py index 3fe989fef2..d8bc05d1df 100644 --- a/Tools/process_sensor_caldata.py +++ b/Tools/process_sensor_caldata.py @@ -420,7 +420,7 @@ accel_0_params = { } # curve fit the data for accel 0 corrections -if num_accel >= 1: +if num_accels >= 1: accel_0_params['TC_A0_ID'] = int(np.median(sensor_accel_0['device_id'])) # find the min, max and reference temperature @@ -519,7 +519,7 @@ accel_1_params = { } # curve fit the data for accel 1 corrections -if num_accel >= 2: +if num_accels >= 2: accel_1_params['TC_A1_ID'] = int(np.median(sensor_accel_1['device_id'])) # find the min, max and reference temperature