refactor ada_callback, detect isr using cortex ICSR

remove ada_callback_FromISR()
This commit is contained in:
hathach committed 2019-06-07 10:23:38 +07:00
1 parent 4f5a143475
commit 577b2039b2
5 files changed
+15 -13

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, 0, _cb, step);
if (_cb) ada_callback(NULL, 0, _cb, step);
}
}