mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-10 05:59:08 -07:00
ESP Flasher quick flash for wroom / dev pro
This commit is contained in:
@@ -189,6 +189,7 @@ static int32_t esp_flasher_flash_bin(void* context) {
|
||||
|
||||
// done
|
||||
app->flash_worker_busy = false;
|
||||
app->quickflash = false;
|
||||
|
||||
// cleanup
|
||||
furi_stream_buffer_free(flash_rx_stream);
|
||||
@@ -236,6 +237,10 @@ static int32_t esp_flasher_reset(void* context) {
|
||||
app->reset = false;
|
||||
app->boot = false;
|
||||
|
||||
if(app->quickflash) {
|
||||
esp_flasher_flash_bin(app);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -324,4 +329,4 @@ void esp_flasher_worker_handle_rx_data_cb(uint8_t* buf, size_t len, void* contex
|
||||
// done flashing
|
||||
if(global_app) esp_flasher_console_output_handle_rx_data_cb(buf, len, global_app);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user