Skip to content

Commit 4e16575

Browse files
committed
Remove debug stuff
1 parent d8a93a5 commit 4e16575

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/displayapp/screens/Pawn.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ static cell AMX_NATIVE_CALL F_sprintf(AMX* amx, const cell* params) {
251251
return bufc - buf;
252252
}
253253

254-
cell AMX_NATIVE_CALL F_read_datetime(AMX* amx, const cell* params) {
254+
static cell AMX_NATIVE_CALL F_read_datetime(AMX* amx, const cell* params) {
255255
ASSERT_PARAMS(1);
256256

257257
Pawn* pawn = PAWN_INST;
@@ -359,7 +359,13 @@ static cell AMX_NATIVE_CALL F_raise_error(AMX* amx, const cell* params) {
359359
ASSERT_PARAMS(1);
360360

361361
amx_RaiseError(amx, params[1]);
362+
return 0;
363+
}
364+
365+
static cell AMX_NATIVE_CALL F_lv_set_full_refresh(AMX* amx, const cell* params) {
366+
ASSERT_PARAMS(1);
362367

368+
PAWN_INST->controllers.lvgl.SetFullRefresh((Pinetime::Components::LittleVgl::FullRefreshDirections) params[1]);
363369
return 0;
364370
}
365371

@@ -382,6 +388,7 @@ static const AMX_NATIVE lvgl_proxys[] = {
382388
F_lv_obj_set_style_local_color,
383389
F_lv_obj_set_style_local_opa,
384390
F_lv_obj_set_style_local_ptr,
391+
F_lv_set_full_refresh,
385392
};
386393

387394
static const AMX_NATIVE pawn_proxys[] = {
@@ -547,7 +554,7 @@ int Pawn::LoadProgram() {
547554
// Happy path: the file is backed by a const array and we can reference it directly
548555
const uint8_t* code = file->GetConst();
549556

550-
if (code == nullptr || true) {
557+
if (code == nullptr) {
551558
// Slow path: we must read the whole file into memory
552559
NRF_LOG_INFO(LOG_PREFIX "Loading program into RAM");
553560

0 commit comments

Comments
 (0)