mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-02 17:29:14 +00: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()
|