refactor ada_callback, detect isr using cortex ICSR
remove ada_callback_FromISR()
This commit is contained in:
1 parent
4f5a143475
commit
577b2039b2
5 files changed
+15
-13
No files matched your search
@@ -195,7 +195,7 @@ void HwRotaryEncoder::_irq_handler(void)
|
||||
if ( _cb )
|
||||
{
|
||||
int32_t step = read();
|
||||
if ( step ) ada_callback_fromISR(NULL, 0, _cb, step);
|
||||
if ( step ) ada_callback(NULL, 0, _cb, step);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user