From 0300f654266d60e927e54b65a2c30f122decbb8a Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Mon, 18 Nov 2024 09:53:17 +0000 Subject: [PATCH] oops - fix build on non-nRF52 devices --- src/jswrap_espruino.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jswrap_espruino.c b/src/jswrap_espruino.c index 6e1b1ea64..d8f2a7500 100644 --- a/src/jswrap_espruino.c +++ b/src/jswrap_espruino.c @@ -705,12 +705,14 @@ Called when a bit rises or falls above a set level. See `E.setComparator` for se } */ void jswrap_espruino_setComparator_eventHandler(IOEvent *event) { +#if defined(NRF52_SERIES) && !defined(SAVE_ON_FLASH) // see jshSetComparator / E.setComparator if ((event->data.time & EVC_TYPE_MASK) == EVC_LPCOMP) { JsVar *arg = jsvNewFromInteger((event->data.time & EVC_DATA_LPCOMP_UP) ? 1 : -1); jsiExecuteEventCallbackOn("E",JS_EVENT_PREFIX"comparator",1,&arg); jsvUnLock(arg); } +#endif } /*JSON{ "type" : "staticmethod",