MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / rebootIntoMassStorageFlash

Function rebootIntoMassStorageFlash

Tactility/Source/hal/usb/Usb.cpp:115–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

onRebootMassStorageFlashFunction · 0.50

Calls 1

Tested by

no test coverage detected