Skip to content

Commit

Permalink
Fix test for temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
dannystaple committed Jun 13, 2020
1 parent 62ffa8f commit ba1e835
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/tests/test_read.py
Expand Up @@ -22,4 +22,4 @@ def test_temperature():
from icm20948 import ICM20948
icm20948 = ICM20948()
temp_degrees = icm20948.read_temperature()
assert (round(temp_degrees, 2) = 24)
assert (round(temp_degrees, 2) == 24)
2 changes: 1 addition & 1 deletion library/tests/tools.py
Expand Up @@ -36,4 +36,4 @@ def read_i2c_block_data(self, addr, reg, length):
))
# temperature data
if length == 2:
return struct.pack(">h", *(0x4, 0x02))
return struct.pack(">h", 0x400)

0 comments on commit ba1e835

Please sign in to comment.