mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
correct get radio
This commit is contained in:
parent
4a44d29719
commit
fa9c8ae5b6
1 changed files with 2 additions and 2 deletions
|
|
@ -686,11 +686,11 @@ async def next_cmd(mc, cmds, json_output=False):
|
||||||
if json_output :
|
if json_output :
|
||||||
print(json.dumps(
|
print(json.dumps(
|
||||||
{"radio_freq": mc.self_info["radio_freq"],
|
{"radio_freq": mc.self_info["radio_freq"],
|
||||||
"radio_sf": mc.self_info["radio_sf"],
|
|
||||||
"radio_bw": mc.self_info["radio_bw"],
|
"radio_bw": mc.self_info["radio_bw"],
|
||||||
|
"radio_sf": mc.self_info["radio_sf"],
|
||||||
"radio_cr": mc.self_info["radio_cr"]}))
|
"radio_cr": mc.self_info["radio_cr"]}))
|
||||||
else:
|
else:
|
||||||
print(f"{mc.self_info['radio_freq']},{mc.self_info['radio_sf']},{mc.self_info['radio_bw']},{mc.self_info['radio_cr']}")
|
print(f"{mc.self_info['radio_freq']},{mc.self_info['radio_bw']},{mc.self_info['radio_sf']},{mc.self_info['radio_cr']}")
|
||||||
case "bat" :
|
case "bat" :
|
||||||
res = await mc.commands.get_bat()
|
res = await mc.commands.get_bat()
|
||||||
logger.debug(res)
|
logger.debug(res)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue