pc-hosted: Disable TPWR when blackmagic command line interaction terminates.
This commit is contained in:
parent
c94a03af48
commit
05dc2e239e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue