Skip to content

Commit

Permalink
updates installed arduino-cli version
Browse files Browse the repository at this point in the history
  • Loading branch information
Renaud11232 committed Oct 8, 2022
1 parent a1f89cb commit a27b4a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions octoprint_marlin_flasher/flasher/arduino_flasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def start_install(self):

def __install(self, operating_system, arch, ext):
installation_path = os.path.join(self._plugin.get_plugin_data_folder(), "arduino-cli")
installed_version = "0.26.0"
installed_version = "0.27.1"
url = "https://github.com/arduino/arduino-cli/releases/download/{version}/arduino-cli_{version}_{os}_{arch}.{ext}"
download_url = url.format(version=installed_version, os=operating_system, arch=arch, ext=ext)
self._logger.info("Downloading %s" % download_url)
Expand Down Expand Up @@ -200,7 +200,7 @@ def check_setup_errors(self):
try:
version = self.__get_arduino().version()["result"]
if isinstance(version, dict):
bad_version = re.match(r"0\.(?:18|19|20|21|22|23|24|25|26)\..+?\Z", version["VersionString"]) is None
bad_version = re.match(r"0\.(?:18|19|20|21|22|23|24|25|26|27)\..+?\Z", version["VersionString"]) is None
else:
not_arduino = True
except pyduinocli.ArduinoError:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<fieldset id="marlin_flasher_settings_arduino_{{field_suffix}}" data-bind="visible: settingsViewModel.settings.plugins.marlin_flasher.platform_type() === 'arduino'">
<legend>{{ _('Arduino') }}</legend>
<div class="alert alert-warning">
<strong>{{ _('Warning !') }}</strong> {{ _('Only versions between <strong>0.18.0</strong> and <strong>0.26.x</strong> are supported') }}
<strong>{{ _('Warning !') }}</strong> {{ _('Only versions between <strong>0.18.0</strong> and <strong>0.27.x</strong> are supported') }}
</div>
<div class="control-group" title="{{ _('One-click installation') }}">
<div class="controls">
Expand Down

0 comments on commit a27b4a2

Please sign in to comment.