From 5be6ef3e341d3404225b3416a8a2387b8bd5288f Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 25 Oct 2023 11:54:22 +0100 Subject: [PATCH] comments/formatting --- libs/banglejs/jswrap_bangle.c | 2 -- src/jsvar.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/banglejs/jswrap_bangle.c b/libs/banglejs/jswrap_bangle.c index 22a3798dda..980ec44a56 100644 --- a/libs/banglejs/jswrap_bangle.c +++ b/libs/banglejs/jswrap_bangle.c @@ -618,8 +618,6 @@ APP_TIMER_DEF(m_backlight_off_timer_id); #define IOEXP_LCD_BACKLIGHT 0x20 #define IOEXP_LCD_RESET 0x40 #define IOEXP_HRM 0x80 - - #define HOME_BTN 3 #endif diff --git a/src/jsvar.c b/src/jsvar.c index 113ca6f579..fba5be5f9f 100644 --- a/src/jsvar.c +++ b/src/jsvar.c @@ -3041,6 +3041,8 @@ JsVar *jsvFindChildFromVar(JsVar *parent, JsVar *childName, bool addIfNotFound) JsVar *child; JsVarRef childref = jsvGetFirstChild(parent); + // TODO: could split this into separate loops looking for Numeric/String + while (childref) { child = jsvLock(childref); if (jsvIsBasicVarEqual(child, childName)) {