Skip to content

Commit

Permalink
Setup test data.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannystaple committed Jun 12, 2020
1 parent ba57e11 commit 628b69e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/tests/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ def read_i2c_block_data(self, addr, reg, length):
555,
666
))
# temperature data
if length == 2:
return struct.pack(">h", *(0x4, 0x00))

0 comments on commit 628b69e

Please sign in to comment.