We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1277a73 commit 010021eCopy full SHA for 010021e
chordspy/connection.py
@@ -432,8 +432,10 @@ def notification_handler(sender, data):
432
for i in range(0, self.ble_connection.NEW_PACKET_LEN, self.ble_connection.SINGLE_SAMPLE_LEN):
433
sample_data = data[i:i+self.ble_connection.SINGLE_SAMPLE_LEN]
434
if len(sample_data) == self.ble_connection.SINGLE_SAMPLE_LEN:
435
- channels = [int.from_bytes(sample_data[i:i+2], byteorder='big', signed=True)
436
- for i in range(1, len(sample_data), 2)]
+ channels = [
+ int.from_bytes(sample_data[i:i + 2], byteorder='big', signed=True)
437
+ for i in range(1, len(sample_data), 2)
438
+ ]
439
self.last_sample = channels
440
self.ble_samples_received += 1
441
0 commit comments