Skip to content

Commit

Permalink
Ensure E.setComparator is added to the build for nRF52
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Jan 21, 2025
1 parent e5d6433 commit 2afd10e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/jswrap_espruino.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" : [
Expand All @@ -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"
}
*/
Expand All @@ -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",
Expand Down

0 comments on commit 2afd10e

Please sign in to comment.