File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/adafruit_blinka/microcontroller/nova Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -180,9 +180,9 @@ def write_readinto(
180
180
# loop over half of resp len as we're reading 2 chars at a time to form a byte
181
181
loops = int (len (resp ) / 2 )
182
182
for j in range (loops ):
183
- buffer_in [( i * self . WHR_PAYLOAD_MAX_LENGTH ) + in_start + j ] = (
184
- int ( resp [ j * 2 ] + resp [ j * 2 + 1 ], 16 )
185
- )
183
+ buffer_in [
184
+ ( i * self . WHR_PAYLOAD_MAX_LENGTH ) + in_start + j
185
+ ] = int ( resp [ j * 2 ] + resp [ j * 2 + 1 ], 16 )
186
186
else :
187
187
raise RuntimeError (
188
188
"Received error response from Binho Nova, result = " + result
@@ -198,9 +198,9 @@ def write_readinto(
198
198
# loop over half of resp len as we're reading 2 chars at a time to form a byte
199
199
loops = int (len (resp ) / 2 )
200
200
for j in range (loops ):
201
- buffer_in [( i * self . WHR_PAYLOAD_MAX_LENGTH ) + in_start + j ] = (
202
- int ( resp [ j * 2 ] + resp [ j * 2 + 1 ], 16 )
203
- )
201
+ buffer_in [
202
+ ( i * self . WHR_PAYLOAD_MAX_LENGTH ) + in_start + j
203
+ ] = int ( resp [ j * 2 ] + resp [ j * 2 + 1 ], 16 )
204
204
else :
205
205
raise RuntimeError (
206
206
"Received error response from Binho Nova, result = " + result
You can’t perform that action at this time.
0 commit comments