summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-08-26 17:30:48 +0100
committerDamien George <damien.p.george@gmail.com>2014-08-26 17:30:48 +0100
commite00fb08f99f85deb5632d075b50cc7242740dd1d (patch)
treef7e84df13c53c1843c717c9ece6565f21a30c2ff
parentf4ce26de5c81d6285a26ac172123398bab314e7e (diff)
downloadmicropython-e00fb08f99f85deb5632d075b50cc7242740dd1d.tar.gz
micropython-e00fb08f99f85deb5632d075b50cc7242740dd1d.zip
stmhal, staccel.py: Style cleanup.
-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):