Skip to content

Commit cdab124

Browse files
committed
fix over-enthusiastic assert
1 parent d2cbb39 commit cdab124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsdevices.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ void CALLED_FROM_INTERRUPT jshIOEventOverflowed() {
438438

439439
/// Push an IO event (max IOEVENT_MAX_LEN) into the ioBuffer (designed to be called from IRQ), returns true on success, Calls jshHadEvent();
440440
bool CALLED_FROM_INTERRUPT jshPushEvent(IOEventFlags evt, uint8_t *data, unsigned int length) {
441-
assert(length<IOEVENT_MAX_LEN);
441+
assert(length<=IOEVENT_MAX_LEN);
442442
if (length>IOEVENT_MAX_LEN) {
443443
#ifndef RELEASE
444444
jsiConsolePrintf("%d>IOEVENT_MAX_LEN\n", length);

0 commit comments

Comments
 (0)