Bootloader size optimizations (#873)

This commit is contained in:
hedger
2021-12-07 17:17:08 +03:00
committed by GitHub
parent 03d7476e4f
commit f54ae2597e
7 changed files with 11 additions and 51 deletions

View File

@@ -194,10 +194,12 @@ void target_display_init() {
// Create payload
u8g2_ClearBuffer(&fb);
u8g2_SetDrawColor(&fb, 0x01);
u8g2_SetFont(&fb, u8g2_font_helvB08_tf);
u8g2_DrawXBM(&fb, 0, 64 - 50, 128, 50, I_DFU_128x50);
#ifndef SLIM_BOOTLOADER
u8g2_SetFont(&fb, u8g2_font_helvB08_tf);
u8g2_DrawStr(&fb, 2, 8, "Update & Recovery Mode");
u8g2_DrawStr(&fb, 2, 21, "DFU started");
#endif
// Send buffer
u8g2_SetPowerSave(&fb, 0);
u8g2_SendBuffer(&fb);