Skip to content

Commit

Permalink
set bootmode with power
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Jan 20, 2018
1 parent d4c052a commit 3fc38f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions board/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ int usb_cb_control_msg(USB_Setup_TypeDef *setup, uint8_t *resp, int hardwired) {
case 0xd9:
if (setup->b.wValue.w == 1) {
set_esp_mode(ESP_ENABLED);
} else if (setup->b.wValue.w == 2) {
set_esp_mode(ESP_BOOTMODE);
} else {
set_esp_mode(ESP_DISABLED);
}
Expand Down

0 comments on commit 3fc38f4

Please sign in to comment.