From 2ab3464fd9283f1b315d378531c6e7a1a1357da8 Mon Sep 17 00:00:00 2001 From: hedger Date: Fri, 16 Jun 2023 16:34:35 +0400 Subject: [PATCH] Hotfix for default target in certain bootstrap modes (#20) --- VERSION.txt | 2 +- ufbt/bootstrap.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/VERSION.txt b/VERSION.txt index 72f9fa8..060d4b5 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -0.2.4 \ No newline at end of file +0.2.4.1 \ No newline at end of file diff --git a/ufbt/bootstrap.py b/ufbt/bootstrap.py index c8d151e..4188ef1 100644 --- a/ufbt/bootstrap.py +++ b/ufbt/bootstrap.py @@ -606,6 +606,9 @@ def _func(self, args) -> int: else: if current_task.mode: task_to_deploy = current_task + # No previous state, use default hw target + if not task_to_deploy.hw_target: + task_to_deploy.hw_target = SdkDeployTask.DEFAULT_HW_TARGET else: log.warn("No previous SDK state was found, fetching latest release") task_to_deploy = SdkDeployTask.default()