Skip to content

Commit 51322d8

Browse files
committed
drop unnecessary chnge
1 parent cef39c5 commit 51322d8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dht/thermometer.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ type device struct {
4545
func (t *device) ReadMeasurements() error {
4646
// initial waiting
4747
state := powerUp(t.pin)
48-
defer func() {
49-
t.pin.Set(state)
50-
}()
48+
defer t.pin.Set(state)
5149
err := t.read()
5250
if err == nil {
5351
t.initialized = true

0 commit comments

Comments
 (0)