Skip to content

Commit a960520

Browse files
committed
Revert src/adafruit_blinka/microcontroller/nova/spi.py
1 parent a212d2a commit a960520

File tree

1 file changed

+6
-6
lines changed
  • src/adafruit_blinka/microcontroller/nova

1 file changed

+6
-6
lines changed

src/adafruit_blinka/microcontroller/nova/spi.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ def write_readinto(
180180
# loop over half of resp len as we're reading 2 chars at a time to form a byte
181181
loops = int(len(resp) / 2)
182182
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)
186186
else:
187187
raise RuntimeError(
188188
"Received error response from Binho Nova, result = " + result
@@ -198,9 +198,9 @@ def write_readinto(
198198
# loop over half of resp len as we're reading 2 chars at a time to form a byte
199199
loops = int(len(resp) / 2)
200200
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)
204204
else:
205205
raise RuntimeError(
206206
"Received error response from Binho Nova, result = " + result

0 commit comments

Comments
 (0)