mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 04:53:08 +00:00
e4a2e9a920
Co-authored-by: hedger <hedger@users.noreply.github.com>
27 lines
536 B
Python
27 lines
536 B
Python
import logging
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
from flipper.utils.cdc import resolve_port
|
|
|
|
|
|
def main():
|
|
logger = logging.getLogger()
|
|
if not (port := resolve_port(logger, "auto")):
|
|
logger.error("Is Flipper connected via USB and not in DFU mode?")
|
|
return 1
|
|
subprocess.call(
|
|
[
|
|
os.path.basename(sys.executable),
|
|
"-m",
|
|
"serial.tools.miniterm",
|
|
"--raw",
|
|
port,
|
|
"230400",
|
|
]
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|