summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xstmhal/boards/STM32F4DISC/staccel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/boards/STM32F4DISC/staccel.py b/stmhal/boards/STM32F4DISC/staccel.py
index 986c3a85c6..ce2646406a 100755
--- a/stmhal/boards/STM32F4DISC/staccel.py
+++ b/stmhal/boards/STM32F4DISC/staccel.py
@@ -39,7 +39,7 @@ class STAccel:
self.cs_pin.high()
self.spi = SPI(1, SPI.MASTER, baudrate=328125, polarity=0, phase=1, bits=8)
self.wr(LIS302DL_CTRL_REG1_ADDR, bytearray([LIS302DL_CONF]))
- if(self.read_id()[0] != LIS302DL_WHO_AM_I_VAL):
+ if self.read_id()[0] != LIS302DL_WHO_AM_I_VAL:
raise Exception('LIS302DL accelerometer not present')
def rd(self, addr, nbytes):