1
0
Fork 0

Overload -n to disable driving the REQ/RST pins

This commit is contained in:
Shawn Nock 2019-06-25 15:39:58 -04:00
parent d1cc5c3f4c
commit 63419ac7c0
2 changed files with 7 additions and 2 deletions

View File

@ -60,6 +60,7 @@ void dump_raw(uint8_t const * const data, size_t len, dump_t dir) {
break;
case DUMP_RXI_BUFFER_UPDATE:
fprintf(stderr, "Partial RX:\n\t");
break;
default:
fprintf(stderr, "Notice: ");
break;

View File

@ -425,7 +425,9 @@ void image_set_no_fix(void) {
}
void image_main(int fd, int argc, char **argv){
gpio_ble_req_bootloader();
if (!g_no_fix) {
gpio_ble_req_bootloader();
}
serial_fd = fd;
if (argc < 1) {
image_help();
@ -453,5 +455,7 @@ void image_main(int fd, int argc, char **argv){
} else {
image_help();
}
gpio_ble_req_controller();
if (!g_no_fix) {
gpio_ble_req_controller();
}
}