Skip to content

Commit f52443f

Browse files
committed
Move program data array to function
This is just to remove the erroneous data segment size change, there's no functional change
1 parent 1f666e5 commit f52443f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/displayapp/screens/Pawn.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
using namespace Pinetime::Applications::Screens;
55

6-
#include "program.h"
7-
86
static void event_handler(lv_obj_t* obj, lv_event_t event) {
97
AMX* amx = (AMX*) lv_obj_get_user_data(lv_scr_act());
108
int handler_index = (int) lv_obj_get_user_data(obj);
@@ -125,6 +123,8 @@ static cell AMX_NATIVE_CALL F_sprintf(AMX* amx, const cell* params) {
125123
}
126124

127125
Pawn::Pawn() {
126+
#include "program.h"
127+
128128
uint8_t* prog = new uint8_t[program_len];
129129
memcpy(prog, program, program_len);
130130

0 commit comments

Comments
 (0)