Skip to content

Commit 84e23d4

Browse files
committed
fixed indentation
1 parent 20edf77 commit 84e23d4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sparkfun_qwiictwist.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@
8989
_TWIST_CHANGE_ADDRESS = const(0x18)
9090

9191
# private functions
92-
def _signed_int16(value):
93-
# convert a 16-bit value into a signed integer
94-
result = value
92+
def _signed_int16(value):
93+
# convert a 16-bit value into a signed integer
94+
result = value
9595

96-
if result & (1<<15):
97-
result -= 1<<16
96+
if result & (1<<15):
97+
result -= 1<<16
9898

99-
return result
99+
return result
100100

101101
# class
102102
class Sparkfun_QwiicTwist:

0 commit comments

Comments
 (0)