Skip to content

Commit e00fb08

Browse files
committed
stmhal, staccel.py: Style cleanup.
1 parent f4ce26d commit e00fb08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stmhal/boards/STM32F4DISC/staccel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self):
3939
self.cs_pin.high()
4040
self.spi = SPI(1, SPI.MASTER, baudrate=328125, polarity=0, phase=1, bits=8)
4141
self.wr(LIS302DL_CTRL_REG1_ADDR, bytearray([LIS302DL_CONF]))
42-
if(self.read_id()[0] != LIS302DL_WHO_AM_I_VAL):
42+
if self.read_id()[0] != LIS302DL_WHO_AM_I_VAL:
4343
raise Exception('LIS302DL accelerometer not present')
4444

4545
def rd(self, addr, nbytes):

0 commit comments

Comments
 (0)