Skip to content

Commit 8f1ebdb

Browse files
authored
ammend (#11)
* ammend * flake8
1 parent 44d1524 commit 8f1ebdb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import time
33

44
from helpers import logger
5+
from packages.globals import DEV_MODE
56
from utils import print_console_text_colored
67
from check_hardware import CheckHardware
78
from legacy_parameters import evaluate_bool_button, init_buttons, set_button
@@ -56,6 +57,7 @@
5657
("Test erfolgreich abgeschlossen! Bitte mit dem Bild-Button die Front fotografieren.", "green"))
5758
finally:
5859
set_button("start", False)
59-
workstation.shutdown_openwb()
60+
if not DEV_MODE:
61+
workstation.shutdown_openwb()
6062
except Exception:
6163
log.exception("Fehler im main-Modul. Programm gestoppt.")

packages/start.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def check_latest_version(self, model: Model) -> None:
5757
if ((RELEASE_HASH != system_version and model in MODE_GROUPS["series2"]) or
5858
(PRO_PLUS_HASH != system_version and model == PRO_PLUS)):
5959
raise Exception(
60-
f"openWB-Software ist nicht aktuell. Erforderliche Version: {RELEASE_HASH}, "
60+
"openWB-Software ist nicht aktuell. Erforderliche Version: "
61+
f"{RELEASE_HASH if model in MODE_GROUPS['series2'] else PRO_PLUS_HASH}, "
6162
f"System-Version: {system_version} Bitte SD-Karte mit aktuellem Image einlegen.")
6263

6364
def check_no_preconfig(self) -> None:

0 commit comments

Comments
 (0)