Skip to content

Commit d857a23

Browse files
committed
Fix indentation
1 parent 294254b commit d857a23

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Arduino_Pedelec_Controller/Arduino_Pedelec_Controller.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ if (loadcell.is_ready()) //new conversion result from load cell available
984984
#endif
985985

986986
#ifdef SUPPORT_THERMISTOR
987-
temperature_thermistor=1/(thermistor_t0+thermistor_b*log((10/(1023.0/analogRead(thermistor_pin)-1))/thermistor_r))-273.15; //calculate thermistor temperature from Steinhart-Hart parameters
987+
temperature_thermistor=1/(thermistor_t0+thermistor_b*log((10/(1023.0/analogRead(thermistor_pin)-1))/thermistor_r))-273.15; //calculate thermistor temperature from Steinhart-Hart parameters
988988
#endif
989989

990990
battery_percent_fromcapacity = constrain((1-wh/ curr_capacity)*100,0,100); //battery percent calculation from battery capacity. For voltage-based calculation see above

tools/compile_test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
'SUPPORT_GEAR_SHIFT',
4848
'SUPPORT_MOTOR_SERVO',
4949
'SUPPORT_TEMP_SENSOR',
50-
'SUPPORT_THERMISTOR',
50+
'SUPPORT_THERMISTOR',
5151
'SUPPORT_HX711',
5252
'DETECT_BROKEN_SPEEDSENSOR',
5353
'USE_EXTERNAL_CURRENT_SENSOR',
@@ -206,10 +206,10 @@ def write_config_h(filename=CONFIG_H,
206206
f.write('\n')
207207
f.write('//Config Options-----------------------------------------------------------------------------------------------------\n')
208208
f.write('const byte temp_pin = A2; //pin connected to Data pin of the DS18x20 temperature Sensor\n')
209-
f.write('const byte thermistor_pin = A2; //thermistor pin\n')
210-
f.write('const float thermistor_t0=0.00335401643; // 1/T0 of thermistor in 1/K\n')
211-
f.write('const float thermistor_b=0.00025316455; // 1/beta of thermistor in 1/K\n')
212-
f.write('const float thermistor_r=10; // r of thermistor in kOhm\n')
209+
f.write('const byte thermistor_pin = A2; //thermistor pin\n')
210+
f.write('const float thermistor_t0=0.00335401643; // 1/T0 of thermistor in 1/K\n')
211+
f.write('const float thermistor_b=0.00025316455; // 1/beta of thermistor in 1/K\n')
212+
f.write('const float thermistor_r=10; // r of thermistor in kOhm\n')
213213
f.write('const int pas_tolerance=1; //0... increase to make pas sensor slower but more tolerant against speed changes\n')
214214
f.write('const int throttle_offset=196; //Offset voltage of throttle control when in "0" position (0..1023 = 0..5V)\n')
215215
f.write('const int throttle_max=832; //Offset voltage of throttle control when in "MAX" position (0..1023 = 0..5V)\n')
@@ -481,7 +481,7 @@ def test_max_config_fc2x0(self):
481481
'SUPPORT_BATTERY_CHARGE_COUNTER',
482482
'SUPPORT_GEAR_SHIFT',
483483
'SUPPORT_TEMP_SENSOR',
484-
'SUPPORT_THERMISTOR',
484+
'SUPPORT_THERMISTOR',
485485
'SUPPORT_HX711',
486486
'DETECT_BROKEN_SPEEDSENSOR'
487487
]

0 commit comments

Comments
 (0)