pc-hosted: Disable TPWR when blackmagic command line interaction terminates.

This commit is contained in:
Uwe Bonnes 2020-03-06 17:00:01 +01:00 committed by UweBonnes
parent c94a03af48
commit 05dc2e239e
1 changed files with 2 additions and 0 deletions

View File

@ -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 {