enhance ada_callback, add malloc len for cleaner usage

This commit is contained in:
hathach committed 2019-02-14 12:50:17 +07:00
1 parent 333f151ff5
commit e13922c58b
11 files changed
+51 -75

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ void SwRotaryEncoder::_irq_handler(void)
_abs += step;
_a_last = bita;
if (_cb) ada_callback_fromISR(NULL, _cb, step);
if (_cb) ada_callback_fromISR(NULL, 0, _cb, step);
}
}