mirror of https://github.com/m-labs/artiq.git
frontend/coretool: minor cleanup
This commit is contained in:
parent
73794b5c25
commit
80172f9548
|
@ -6,10 +6,6 @@ from artiq.master.databases import DeviceDB
|
||||||
from artiq.master.worker_db import DeviceManager
|
from artiq.master.worker_db import DeviceManager
|
||||||
|
|
||||||
|
|
||||||
def to_bytes(string):
|
|
||||||
return bytes(string, encoding="ascii")
|
|
||||||
|
|
||||||
|
|
||||||
def get_argparser():
|
def get_argparser():
|
||||||
parser = argparse.ArgumentParser(description="ARTIQ core device "
|
parser = argparse.ArgumentParser(description="ARTIQ core device "
|
||||||
"remote access tool")
|
"remote access tool")
|
||||||
|
@ -64,7 +60,7 @@ def main():
|
||||||
comm.check_ident()
|
comm.check_ident()
|
||||||
|
|
||||||
if args.action == "log":
|
if args.action == "log":
|
||||||
print(comm.get_log(), end='')
|
print(comm.get_log(), end="")
|
||||||
elif args.action == "cfg-read":
|
elif args.action == "cfg-read":
|
||||||
value = comm.flash_storage_read(args.key)
|
value = comm.flash_storage_read(args.key)
|
||||||
if not value:
|
if not value:
|
||||||
|
|
Loading…
Reference in New Issue