Skip to content

Commit

Permalink
increased default timeout to 10min as vibration profile can take some…
Browse files Browse the repository at this point in the history
… time
  • Loading branch information
Frix-x committed Aug 4, 2024
1 parent 064150b commit 6776816
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Follow these steps to install Shake&Tune on your printer:
# show_macros_in_webui: True
# Mainsail and Fluidd doesn't create buttons for "system" macros that are not in the
# printer.cfg file. If you want to see the macros in the webui, set this to True.
# timeout: 300
# timeout: 600
# The maximum time in seconds to let Shake&Tune process the CSV files and generate the graphs.
```

Expand Down
6 changes: 3 additions & 3 deletions shaketune/shaketune.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
DEFAULT_NUMBER_OF_RESULTS = 3
DEFAULT_KEEP_RAW_CSV = False
DEFAULT_DPI = 150
DEFAULT_TIMEOUT = 300
DEFAULT_TIMEOUT = 600
DEFAULT_SHOW_MACROS = True
ST_COMMANDS = {
'EXCITATE_AXIS_AT_FREQ': (
Expand Down Expand Up @@ -82,8 +82,8 @@ def _initialize_config(self, config) -> None:
dpi = config.getint('dpi', default=DEFAULT_DPI, minval=100, maxval=500)
self._st_config = ShakeTuneConfig(result_folder_path, keep_n_results, keep_csv, dpi)

self.timeout = config.getfloat('timeout', 300, above=0.0)
self._show_macros = config.getboolean('show_macros_in_webui', default=True)
self.timeout = config.getfloat('timeout', DEFAULT_TIMEOUT, above=0.0)
self._show_macros = config.getboolean('show_macros_in_webui', default=DEFAULT_SHOW_MACROS)

# Create the Klipper commands to allow the user to run Shake&Tune's tools
def _register_commands(self) -> None:
Expand Down

0 comments on commit 6776816

Please sign in to comment.