enhance ada_callback, add malloc len for cleaner usage
This commit is contained in:
11 files changed
+51
-75
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, _cb, step);
|
||||
if ( step ) ada_callback_fromISR(NULL, 0, _cb, step);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user