feat(ota): show update expression during firmware install
This commit is contained in:
@@ -26,6 +26,12 @@ static const lcd_direct_image_t s_listening_frames[] = {
|
||||
{.path = LCD_ASSET_BASE_PATH "listening2.png"},
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t s_ota_frames[] = {
|
||||
{.path = LCD_ASSET_BASE_PATH "ota1.png"},
|
||||
{.path = LCD_ASSET_BASE_PATH "ota2.png"},
|
||||
{.path = LCD_ASSET_BASE_PATH "ota3.png"},
|
||||
};
|
||||
|
||||
static const lcd_direct_image_t s_wifi_connecting_qr_frames[] = {
|
||||
{.path = LCD_ASSET_BASE_PATH "qrcode.png"},
|
||||
};
|
||||
@@ -258,6 +264,12 @@ const lcd_direct_image_t *lcd_direct_asset_frame(const char *asset_dir, uint8_t
|
||||
frame_index);
|
||||
}
|
||||
|
||||
if (strcmp(asset_dir, "ota") == 0) {
|
||||
return lcd_direct_frame_from_array(s_ota_frames,
|
||||
sizeof(s_ota_frames) / sizeof(s_ota_frames[0]),
|
||||
frame_index);
|
||||
}
|
||||
|
||||
if (strcmp(asset_dir, "wifi_connecting_qr") == 0) {
|
||||
return lcd_direct_frame_from_array(
|
||||
s_wifi_connecting_qr_frames,
|
||||
|
||||
Reference in New Issue
Block a user