Skip to content

Commit

Permalink
Merge branch 'ttc-fix' into ttc-fix-new
Browse files Browse the repository at this point in the history
  • Loading branch information
Frix-x authored Sep 25, 2024
2 parents 1737c01 + b8832f8 commit 9141984
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shaketune/helpers/accelerometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
Sample = Tuple[float, float, float, float]
SamplesList = List[Sample]

CHUNK_SIZE = 15 # Maximum number of measurements to keep in memory at once


class Measurement(TypedDict):
name: str
Expand Down Expand Up @@ -132,7 +134,7 @@ def wait_for_data_transfers(self, k_reactor, timeout: int = 30):

if not complete:
raise TimeoutError(
'Shake&Tune was unable to write the accelerometer data on the fylesystem. '
'Shake&Tune was unable to write the accelerometer data on the filesystem. '
'This might be due to a slow, busy or full SD card.'
)

Expand Down

0 comments on commit 9141984

Please sign in to comment.