From 05dc2e239e03acfed86aa10eb3a784d2873a55f6 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Fri, 6 Mar 2020 17:00:01 +0100 Subject: [PATCH] pc-hosted: Disable TPWR when blackmagic command line interaction terminates. --- src/platforms/pc-hosted/platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platforms/pc-hosted/platform.c b/src/platforms/pc-hosted/platform.c index d972b4ec..d543cfb7 100644 --- a/src/platforms/pc-hosted/platform.c +++ b/src/platforms/pc-hosted/platform.c @@ -130,6 +130,8 @@ void platform_init(int argc, char **argv) printf("Remote is %s\n",&construct[1]); if (cl_opts.opt_mode != BMP_MODE_DEBUG) { int ret = cl_execute(&cl_opts); + if (cl_opts.opt_tpwr) + platform_target_set_power(0); close(f); exit(ret); } else {