Tools: Fix idf.py hints to be enabled all the time and being able to disable them

This commit is contained in:
Roland Dobai
2022-08-12 14:01:30 +02:00
parent f11de46bfc
commit 152ce8884b
4 changed files with 8 additions and 10 deletions

View File

@@ -175,7 +175,7 @@ def action_extensions(base_actions: Dict, project_path: str) -> Dict:
ensure_build_directory(args, ctx.info_name)
esptool_args = _get_esptool_args(args)
esptool_args += ['erase_flash']
RunTool('esptool.py', esptool_args, args.build_dir)()
RunTool('esptool.py', esptool_args, args.build_dir, hints=not args.no_hints)()
def global_callback(ctx: click.core.Context, global_args: Dict, tasks: PropertyDict) -> None:
encryption = any([task.name in ('encrypted-flash', 'encrypted-app-flash') for task in tasks])