Adacallback support fromISR call
- change Prioprity for loop() to LOW - defer interrupt for both hw and sw encoder to ada callback
This commit is contained in:
1 parent
9b71709c13
commit
b2e49f2fc9
8 files changed
+26
-12
No files matched your search
@@ -198,7 +198,7 @@ void HwRotaryEncoder::_irq_handler(void)
|
||||
if ( _cb )
|
||||
{
|
||||
int32_t step = read();
|
||||
if ( step ) ada_callback(NULL, _cb, step);
|
||||
if ( step ) ada_callback_fromISR(NULL, _cb, step);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user