diff --git a/ChangeLog b/ChangeLog index d777e05b9..a100e704a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ nRF52: If we reboot because of LOCKUP, don't enable DCDC converter Bangle.js2: Test screen now fails if no DCDC enabled Bangle.js: Ensure fake LED1/LED2 remember state + Ensure E.setComparator is added to the build for nRF52 2v25 : ESP32C3: Get analogRead working correctly Graphics: Adjust image alignment when rotating images to avoid cropping (fix #2535) diff --git a/src/jswrap_espruino.c b/src/jswrap_espruino.c index 62c46bb83..f9031a057 100644 --- a/src/jswrap_espruino.c +++ b/src/jswrap_espruino.c @@ -689,7 +689,7 @@ void jswrap_espruino_kickWatchdog() { /*JSON{ "type" : "event", - "#if" : "defined(NRF52) && !defined(SAVE_ON_FLASH)", + "#if" : "defined(NRF52_SERIES) && !defined(SAVE_ON_FLASH)", "class" : "E", "name" : "comparator", "params" : [ @@ -700,7 +700,7 @@ Called when a bit rises or falls above a set level. See `E.setComparator` for se */ /*JSON{ "type" : "EV_CUSTOM", - "#if" : "defined(NRF52) && !defined(SAVE_ON_FLASH)", + "#if" : "defined(NRF52_SERIES) && !defined(SAVE_ON_FLASH)", "generate" : "jswrap_espruino_setComparator_eventHandler" } */ @@ -716,7 +716,7 @@ void jswrap_espruino_setComparator_eventHandler(IOEvent *event) { } /*JSON{ "type" : "staticmethod", - "#if" : "defined(NRF52) && !defined(SAVE_ON_FLASH)", + "#if" : "defined(NRF52_SERIES) && !defined(SAVE_ON_FLASH)", "class" : "E", "name" : "setComparator", "generate" : "jswrap_espruino_setComparator",