Skip to content

Commit f2ec15a

Browse files
author
betsy
committed
updates from code review
1 parent 2e1b931 commit f2ec15a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The thermistor class takes three to five parameters (three required, two optiona
2323
| *pin* | Imp pin object capable of ANALOG_IN | Required |
2424
| *b_therm* | Thermistor ß parameter, from datasheet | Required |
2525
| *t0_therm* | Thermistor T0 parameter, from datasheet | Required |
26-
| *points* | number of readings to average when reading the thermistor | Optional, defaults to 10.0 |
26+
| *points* | number of readings to average when reading the thermistor | Optional, defaults to 10 |
2727
| *high_side_therm* | Set `false` to place thermistor on low side of divider | Optional, defaults to `true` |
2828

2929
The ß and T0 parameters are all available on the thermistor datasheet:

Diff for: Thermistor.class.nut

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Thermistor {
1414

1515
_highSide = null;
1616

17-
constructor(pin, b, t0, points = 10.0, highSide = true) {
17+
constructor(pin, b, t0, points = 10, highSide = true) {
1818
_pin = pin;
1919
_pin.configure(ANALOG_IN);
2020

@@ -36,7 +36,7 @@ class Thermistor {
3636
}
3737

3838
// read thermistor in Kelvin
39-
function readK(cb = null) {
39+
function readK() {
4040
local vrat_raw = 0;
4141
for (local i = 0; i < _pointsPerRead; i++) {
4242
vrat_raw += _pin.read();

0 commit comments

Comments
 (0)