| 113 | } |
| 114 | |
| 115 | void rebootIntoMassStorageFlash() { |
| 116 | if (tusbCanStartMassStorageWithFlash()) { |
| 117 | bootModeData.flag = BOOT_FLAG_FLASH; |
| 118 | esp_restart(); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | bool isUsbBootMode() { |
| 123 | return bootModeData.flag == BOOT_FLAG_SDMMC || bootModeData.flag == BOOT_FLAG_FLASH; // Support both |
no test coverage detected