mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-28 11:26:32 +03:00
15 lines
320 B
Python
15 lines
320 B
Python
|
import logging
|
||
|
import subprocess
|
||
|
from flipper.utils.cdc import resolve_port
|
||
|
|
||
|
|
||
|
def main():
|
||
|
logger = logging.getLogger()
|
||
|
if not (port := resolve_port(logger, "auto")):
|
||
|
return 1
|
||
|
subprocess.call(["python3", "-m", "serial.tools.miniterm", "--raw", port, "230400"])
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
main()
|