NEW: Flash mass storage functions
| 94 | |
| 95 | // NEW: Flash mass storage functions |
| 96 | bool startMassStorageWithFlash(bool fromBootMode) { |
| 97 | if (!canStartNewMode()) { |
| 98 | LOGGER.error("Can't start flash mass storage"); |
| 99 | return false; |
| 100 | } |
| 101 | |
| 102 | if (tusbStartMassStorageWithFlash(fromBootMode)) { |
| 103 | currentMode = Mode::MassStorageFlash; |
| 104 | return true; |
| 105 | } else { |
| 106 | LOGGER.error("Failed to init flash mass storage"); |
| 107 | return false; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | bool canRebootIntoMassStorageFlash() { |
| 112 | return tusbCanStartMassStorageWithFlash(); |
no test coverage detected