diff --git a/main/rp2040_updater.c b/main/rp2040_updater.c index 0b2687a..e05663b 100644 --- a/main/rp2040_updater.c +++ b/main/rp2040_updater.c @@ -110,13 +110,10 @@ void rp2040_updater(RP2040* rp2040, pax_buf_t* pax_buffer, ILI9341* ili9341) { } display_rp2040_update_state(pax_buffer, ili9341, "Synchronizing..."); - - char rx_buffer[16]; - uint8_t rx_buffer_pos = 0; - memset(rx_buffer, 0, sizeof(rx_buffer)); + while (true) { if (rp2040_bl_sync()) break; - vTaskDelay(500 / portTICK_PERIOD_MS); + vTaskDelay(100 / portTICK_PERIOD_MS); } uint32_t flash_start = 0, flash_size = 0, erase_size = 0, write_size = 0, max_data_len = 0; diff --git a/main/wifi_ota.c b/main/wifi_ota.c index c125b34..e31383a 100644 --- a/main/wifi_ota.c +++ b/main/wifi_ota.c @@ -109,7 +109,7 @@ void display_ota_state(pax_buf_t* pax_buffer, ILI9341* ili9341, const char* text const pax_font_t* font = pax_get_font("sky mono"); pax_background(pax_buffer, 0xFFFFFF); pax_vec1_t title_size = pax_text_size(font, 18, "Firmware update"); - pax_draw_text(pax_buffer, 0xFF000000, font, 18, (320 / 2) - (title_size.x / 2), 120 - 30, "Co-processor update"); + pax_draw_text(pax_buffer, 0xFF000000, font, 18, (320 / 2) - (title_size.x / 2), 120 - 30, "Firmware update"); pax_vec1_t size = pax_text_size(font, 18, text); pax_draw_text(pax_buffer, 0xFF000000, font, 18, (320 / 2) - (size.x / 2), 120 + 10, text); ili9341_write(ili9341, pax_buffer->buf);