sync
This commit is contained in:
10
buzzer_tool/core/commands/confirm.py
Normal file
10
buzzer_tool/core/commands/confirm.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# core/commands/mkdir.py
|
||||||
|
from core.connection import BuzzerError
|
||||||
|
|
||||||
|
def execute(conn):
|
||||||
|
"""Confirmt die aktuelle Firmware."""
|
||||||
|
try:
|
||||||
|
conn.send_command(f"confirm")
|
||||||
|
print(f"✅ Firmware erfolgreich bestätigt.")
|
||||||
|
except BuzzerError as e:
|
||||||
|
print(f"❌ Fehler beim Bestätigen der Firmware: {e}")
|
||||||
10
buzzer_tool/core/commands/reboot.py
Normal file
10
buzzer_tool/core/commands/reboot.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# core/commands/mkdir.py
|
||||||
|
from core.connection import BuzzerError
|
||||||
|
|
||||||
|
def execute(conn):
|
||||||
|
"""Startet den Buzzer neu."""
|
||||||
|
try:
|
||||||
|
conn.send_command(f"reboot")
|
||||||
|
print(f"🔄 Buzzer wird neu gestartet.")
|
||||||
|
except BuzzerError as e:
|
||||||
|
print(f"❌ Fehler beim Neustarten des Buzzers: {e}")
|
||||||
Reference in New Issue
Block a user