Skip to content
This repository was archived by the owner on Aug 2, 2020. It is now read-only.

Commit 6952e8a

Browse files
authored
Merge branch 'master' into disobey-last-pieces
2 parents 33bb693 + d4628fe commit 6952e8a

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

esp32/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ INC += -I../lib/timeutils
8181
INC += -I../../components/badge
8282
INC += -I../../components/ugfx-glue
8383
INC += -I../../components/graph
84-
INC += -I../../components/sha2017
8584
INC += -I../../components/graphics
85+
INC += -I../../components/badge-ota
8686
INC += -I../../components/bpp-recv
8787
INC += -I../../components/bpp-if
8888
INC += -I../../components/ed25519/include
@@ -722,9 +722,9 @@ BADGE_COMPONENTS_O = $(addprefix $(PROJECT_PATH)/components/,\
722722
ugfx-glue/ginput_lld_toggle.o \
723723
ugfx-glue/gfx_mk.o \
724724
ugfx-glue/gfx_userfs.o \
725-
sha2017/letsencrypt.o \
725+
badge-ota/letsencrypt.o \
726726
graphics/graphics.o \
727-
sha2017/sha2017_ota.o \
727+
badge-ota/badge_ota.o \
728728
badge-first-run/badge_first_run.o \
729729
png/adler32.o \
730730
png/crc32.o \

esp32/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include "soc/cpu.h"
3838
#include "rom/rtc.h"
3939

40-
#include "sha2017_ota.h"
40+
#include "badge_ota.h"
4141
#include "esprtcmem.h"
4242

4343
#include "py/stackctrl.h"
@@ -204,7 +204,7 @@ void app_main(void) {
204204
switch (magic) {
205205
case 1:
206206
printf("Starting OTA\n");
207-
sha2017_ota_update();
207+
badge_ota_update();
208208
break;
209209

210210
#ifdef CONFIG_SHA_BPP_ENABLE

esp32/modbadge.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ STATIC mp_obj_t badge_eink_png(mp_obj_t obj_x, mp_obj_t obj_y, mp_obj_t obj_file
524524
uint32_t dst_min_x = x < 0 ? -x : 0;
525525
uint32_t dst_min_y = y < 0 ? -y : 0;
526526
int res = lib_png_load_image(pr, &badge_fb[y * BADGE_FB_WIDTH + x], dst_min_x, dst_min_y, BADGE_FB_WIDTH - x, BADGE_FB_HEIGHT - y, BADGE_FB_WIDTH);
527+
527528
lib_png_destroy(pr);
528529
if (is_bytes) {
529530
lib_mem_destroy(reader_p);

esp32/modbadge.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include "badge.h"
77
#include "badge_pins.h"
8+
#include "badge_fb.h"
89
#include "badge_eink.h"
910
#include "badge_fb.h"
1011
#include "badge_eink_dev.h"
@@ -29,4 +30,4 @@
2930
// #include "madison_gurkha.h"
3031
// #include "leaseweb.h"
3132

32-
#include "sha2017_ota.h"
33+
#include "badge_ota.h"

unix/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ INC += -I$(TOP)
2424
INC += -I$(BUILD)
2525
INC += -I../../components/ugfx-glue
2626
INC += -I../../components/badge
27-
INC += -I../../components/sha2017
27+
INC += -I../../components/badge-ota
2828
INC += -I../../esp-idf/components/esp32/include/
2929
INC += -I../../ugfx/src/gdisp/mcufont
3030
INC += -I../../ugfx
@@ -168,7 +168,7 @@ SRC_C = \
168168
modbadge.c \
169169
../../ugfx/drivers/multiple/SDL/gdisp_lld_SDL.c \
170170
ginput_lld_toggle.c \
171-
../../components/sha2017/letsencrypt.c \
171+
../../components/badge-ota/letsencrypt.c \
172172
gfx_mk.c \
173173
modos.c \
174174
moduos_vfs.c \

0 commit comments

Comments
 (0)