Skip to content

Commit

Permalink
Merge pull request #2415 from elima/elima/fix-banglejs-debug-build
Browse files Browse the repository at this point in the history
Fix BangleJS debug builds failing on bogus assert call
  • Loading branch information
gfwilliams authored Sep 15, 2023
2 parents 1f80e6e + 3181bb6 commit ff59598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/banglejs/jswrap_bangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -6062,7 +6062,7 @@ JsVar *jswrap_banglejs_appRect() {

/// Called from jsinteractive when an event is parsed from the event queue for Bangle.js (executed outside IRQ)
void jsbangle_exec_pending(IOEvent *evt) {
assert(event=>type == EV_BANGLEJS);
assert(evt->flags & EV_BANGLEJS);
uint16_t value = ((uint8_t)evt->data.chars[1])<<8 | (uint8_t)evt->data.chars[2];
switch ((JsBangleEvent)evt->data.chars[0]) {
case JSBE_HRM_ENV: {
Expand Down

0 comments on commit ff59598

Please sign in to comment.