Skip to content

Commit f77f063

Browse files
committed
set rfm69 to idle before reading temperature
1 parent 9825b34 commit f77f063

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_rfm/rfm69.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ def temperature(self) -> float:
310310
311311
.. warning:: Reading this will STOP any receiving/sending that might be happening!
312312
"""
313+
self.idle() # set radio idle before reading temperature
313314
# Start a measurement then poll the measurement finished bit.
314315
self.temp_start = 1
315316
while self.temp_running > 0:

0 commit comments

Comments
 (0)