We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4ce26d commit e00fb08Copy full SHA for e00fb08
1 file changed
stmhal/boards/STM32F4DISC/staccel.py
@@ -39,7 +39,7 @@ def __init__(self):
39
self.cs_pin.high()
40
self.spi = SPI(1, SPI.MASTER, baudrate=328125, polarity=0, phase=1, bits=8)
41
self.wr(LIS302DL_CTRL_REG1_ADDR, bytearray([LIS302DL_CONF]))
42
- if(self.read_id()[0] != LIS302DL_WHO_AM_I_VAL):
+ if self.read_id()[0] != LIS302DL_WHO_AM_I_VAL:
43
raise Exception('LIS302DL accelerometer not present')
44
45
def rd(self, addr, nbytes):
0 commit comments