File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ def int_flg(self):
245
245
port B ----> pins 8-15
246
246
"""
247
247
intf = self ._read_u16le (_MCP23017_INTFA )
248
- flg = [i for i in range (16 ) if ( intf & (1 << i ) )]
248
+ flg = [i for i in range (16 ) if intf & (1 << i )]
249
249
return flg
250
250
251
251
@property
@@ -254,7 +254,7 @@ def int_flga(self):
254
254
pins: 0-7
255
255
"""
256
256
intfa = self ._read_u8 (_MCP23017_INTFA )
257
- flga = [i for i in range (8 ) if ( intfa & (1 << i ) )]
257
+ flga = [i for i in range (8 ) if intfa & (1 << i )]
258
258
return flga
259
259
260
260
@property
@@ -263,7 +263,7 @@ def int_flgb(self):
263
263
pins: 8-15
264
264
"""
265
265
intfb = self ._read_u8 (_MCP23017_INTFB )
266
- flgb = [i + 8 for i in range (8 ) if ( intfb & (1 << i ) )]
266
+ flgb = [i + 8 for i in range (8 ) if intfb & (1 << i )]
267
267
return flgb
268
268
269
269
def clear_ints (self ):
You can’t perform that action at this time.
0 commit comments