Skip to content

Commit

Permalink
Added CPU usage fix from github
Browse files Browse the repository at this point in the history
  • Loading branch information
AddisonG committed Nov 15, 2022
1 parent 0db75c6 commit 332ed97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hx711.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def readRawBytes(self):

# Wait until HX711 is ready for us to read a sample.
while not self.is_ready():
pass
time.sleep(0.01)

# Read three bytes of data from the HX711.
firstByte = self.readNextByte()
Expand Down

0 comments on commit 332ed97

Please sign in to comment.